spec/role_spec.rb in hoverbird-ny-times-congress-1.1.0 vs spec/role_spec.rb in hoverbird-ny-times-congress-1.2.0

- old
+ new

@@ -7,11 +7,11 @@ role_response_fragment end context "initializing with params hash", :shared => true do before do - @role = Role.new(JSON.parse example_data) + @role = Role.new(JSON.parse(example_data)) end it "should set String attributes" do role.chamber.should == 'Senate' role.title.should == 'Senator, 2nd Class' @@ -69,11 +69,11 @@ } JSON end before do - @legislator = Legislator.new(JSON.parse example_data) + @legislator = Legislator.new(JSON.parse(example_data)) legislator.roles.should_not be_nil @role = legislator.roles.sort_by{|r| r.congress}.first end it "should set String attributes" do @@ -95,10 +95,10 @@ it "should return nil for values that are 'N/A'" do role.district.should be_nil end it "can be found through the Legislator" do - legislator.roles.should include role + legislator.roles.should include(role) end end end \ No newline at end of file