features/step_definitions/profile_steps.rb in hookercookerman-amee-0.1.9 vs features/step_definitions/profile_steps.rb in hookercookerman-amee-0.2.0

- old
+ new

@@ -3,9 +3,16 @@ :file => File.join(AMEE_FIXTURE_PATH, "profiles/profile.json") ) @models["profile"] = @amee_session.create_profile end +When(/^I create an amee profile with representation false$/) do + FakeWeb.register_uri(:post, "http://stage.amee.com/profiles?profile=true", + :file => File.join(AMEE_FIXTURE_PATH, "profiles/profile.json") + ) + @models["profile"] = @amee_session.create_profile +end + Then(/^I should have a valid amee profile$/) do @models["profile"].name.should == "180D73DA5229" @models["profile"].uid.should == "180D73DA5229" end \ No newline at end of file