Skip to content

Commit

Permalink
Fixed cucumber specs
Browse files Browse the repository at this point in the history
  • Loading branch information
brennandunn committed Oct 7, 2010
1 parent 89331f9 commit 9a747e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/step_definitions/editor_steps.rb
Expand Up @@ -3,6 +3,6 @@
end

When /^the placeholder "([^\"]*)" is saved with "([^\"]*)"$/ do |placeholder, content|
@env = Rack::MockRequest.env_for('/__update__', :method => 'PUT', :input => ActiveSupport::JSON.decode(content), 'X-Placeholder' => placeholder, 'HTTP_ACCEPT' => 'text/*', 'HTTP_COOKIE' => @cookies)
@env = Rack::MockRequest.env_for('/__update__', :method => 'PUT', :params => { placeholder => ActiveSupport::JSON.decode(content) }, 'HTTP_ACCEPT' => 'text/*', 'HTTP_COOKIE' => @cookies)
@response_body = @instance.call(@env)[2]
end
7 changes: 6 additions & 1 deletion features/support/env.rb
Expand Up @@ -2,4 +2,9 @@
require 'rack/cms'

require 'spec/expectations'
require 'spec/stubs/cucumber'
require 'spec/stubs/cucumber'

Before do
require 'redis'
Redis.new.flushall
end

0 comments on commit 9a747e7

Please sign in to comment.