spec/lib/mocks_spec.rb in api_resource-0.3.2 vs spec/lib/mocks_spec.rb in api_resource-0.3.3

- old
+ new

@@ -30,7 +30,16 @@ "/mock_with_block/1?#{{:test => "abc"}.to_query}" ) resp["id"].should eql "1" resp["test"].should eql "abc" end + + context "Mock Request" do + context "Initialize" do + it "should correctly assign blank params" do + request = ApiResource::Mocks::MockRequest.new(:get, "/authenticate.json?token=") + request.params.should eql({"token" => ""}) + end + end + end end \ No newline at end of file