Sha256: 146aafe1f1a96ec4278e56a4cdb4186f6fae4846f6131fb9c2946c762e4a7ce9

Contents?: true

Size: 661 Bytes

Versions: 55

Compression:

Stored size: 661 Bytes

Contents

Given /^There is content with title "(.*)" and body "(.*)" scoped to user "(.*)"$/ do |title, body, username|
  user = Factory(:user, :login => username)
  Factory(:content, :title => title, :body_raw => body, :contentable => user)
end

Given /^There is a content page with the title "(.*)" and the body "(.*)"$/ do |title, body|
  Factory(:content, :title => title, :body_raw => body, :contentable => nil)
  ActionController::Routing::Routes.reload!
end

Given /^There is a content page with the uri "(.*)" and the body "(.*)"$/ do |uri, body|
  content = Factory.build(:content, :body_raw => body, :contentable => nil)
  content.uri = uri
  content.save!
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
muck-contents-0.2.27 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.26 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.2.4 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.2.3 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.25 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.24 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.23 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.2.2 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.22 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.21 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.2.1 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.2.0 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.20 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.11 test/rails_root/features/step_definitions/content_steps.rb
muck-contents-0.2.18 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.9 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.8 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.7 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.6 test/rails_root/features/step_definitions/content_steps.rb
muck-oauth-0.1.5 test/rails_root/features/step_definitions/content_steps.rb