Permalink
Browse files

edit rspec messages

  • Loading branch information...
waltjones committed Jul 2, 2012
1 parent c74fb0e commit dc2e3725a66faa6314fe51836a72581eb7ff34bc
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/unit/interpol/endpoint_spec.rb
@@ -201,14 +201,14 @@ def build_hash(hash = {})
end
%w[ path_params query_params ].each do |attr|
- it "returns an empty hash if not initialized with '#{attr}'" do
+ it "initializes #{attr} to an empty hash if no value is provided" do
v = EndpointDefinition.new("name", version, 'response', build_hash)
v.send(attr).should eq({})
end
end
%w[ path_params query_params ].each do |attr|
- it "returns #{attr} when initialized" do
+ it "initializes #{attr} to the provided value" do
params = {'key' => 'param'}
hash = build_hash(attr => params)
v = EndpointDefinition.new("name", version, 'response', hash)

0 comments on commit dc2e372

Please sign in to comment.