Sha256: 4f8812ec2774b168176084adc21db86f536a8e04f2fb45e62ae876b4cb73052e
Contents?: true
Size: 527 Bytes
Versions: 12
Compression:
Stored size: 527 Bytes
Contents
shared_examples_for "calling a method in the api template" do before(:each) do @response = @luke.as_api_response(:only_full_name) end it "returns a hash" do @response.should be_kind_of(Hash) end it "returns the correct number of fields" do @response.should have(1).keys end it "returns all specified fields by name" do @response.keys.should include(:full_name) end it "returns the correct values for the specified fields" do @response.values.should include(@luke.full_name) end end
Version data entries
12 entries across 12 versions & 2 rubygems