Sha256: f37701723558f956842c847c93e727156d78681c222154d90a25ed8161416c1b

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

Given /^a page at "([^\"]*)" containing:$/ do |path, content|
  page = Page.create!(:title => "test", :breadcrumb => "test", :slug => path, :status_id => 100)
  page.parts.create!(:name => "body", :content => content)
end

When /^there is an empty Radiant cache$/ do
  Radiant::Cache.clear
end

Given /^I log in as an admin$/ do
  visit '/admin/login'
  fill_in 'Username', :with => 'admin'
  fill_in 'Password', :with => 'radiant'
  click_button 'Login'
  Then(%(I should be on "/admin/pages"))
end

When /^I log out$/ do
  visit "/admin/logout"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
metry-2.0.4 radiant/example/features/step_definitions/radiant.rb
metry-2.0.5 radiant/example/features/step_definitions/radiant.rb
metry-2.1.0 radiant/example/features/step_definitions/radiant.rb
metry-2.1.1 radiant/example/features/step_definitions/radiant.rb
metry-2.0.0 radiant/example/features/step_definitions/radiant.rb
metry-2.0.1 radiant/example/features/step_definitions/radiant.rb
metry-2.0.2 radiant/example/features/step_definitions/radiant.rb
metry-2.0.3 radiant/example/features/step_definitions/radiant.rb
metry-1.2.0 radiant/example/features/step_definitions/radiant.rb