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