Skip to content

Instantly share code, notes, and snippets.

@ohcibi
Created July 28, 2012 14:42
Show Gist options
  • Save ohcibi/3193636 to your computer and use it in GitHub Desktop.
Save ohcibi/3193636 to your computer and use it in GitHub Desktop.
69: end
70: pages[2].reload
71: end
72: its(:menu_order) { should == 1}
73: it "should add an excluded css class to the pages control" do
=> 74: binding.pry
75: visit admin_pages_path
76: page.should_not have_selector "li.excluded#page_#{pages[2].id}"
77: end
78: end
79: end
[1] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> pages[2].id
=> 9
[2] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Page.find(9).menu_order
=> 1
[3] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> visit admin_pages_path
=> nil
[4] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Page.find(9).menu_order
=> -1
[5] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment