Sha256: 3e6dee0fe145080377df7640375766832ac2b07fd3c35053b2e107255197c43f
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
require 'rspec' shared_examples_for "includes Spidr::Settings::UserAgent" do describe "user_agent" do context "default value" do it { expect(subject.user_agent).to be_nil } end end describe "user_agent=" do let(:user_agent) { 'Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405' } before do subject.user_agent = user_agent end it "should update the user_agent" do expect(subject.user_agent).to be == user_agent end after do subject.user_agent = nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems