features/client/requests.feature in mirage-2.4.2 vs features/client/requests.feature in mirage-3.0.0.alpha.1

- old
+ new

@@ -1,22 +1,18 @@ -Feature: Requests made to the Mirage Server can be tracked using the Mirage client +Feature: Requests made to the Mirage Server can be retrieved using the Mirage client Background: - Given the following gems are required to run the Mirage client test code: + Given the following require statements are needed: """ require 'rubygems' - require 'rspec' require 'mirage/client' """ - Scenario: The MockServer returns a response - Given I send PUT to 'http://localhost:7001/mirage/templates/greeting' with request entity - """ - Hello - """ + Scenario: Retrieving request data + Given a template for 'greeting' has been set with a value of 'Hello' When I send GET to 'http://localhost:7001/mirage/responses/greeting' with parameters: | name | leon | Then I run """ - Mirage::Client.new.request(1).should == 'name=leon' + Mirage::Client.new.requests(1).parameters.should == {'name' => 'leon'} """ \ No newline at end of file