spec/helpers/application_helper_spec.rb in radiant-1.0.1 vs spec/helpers/application_helper_spec.rb in radiant-1.1.0.alpha
- old
+ new
@@ -92,11 +92,10 @@
it "should render an admin navigation link" do
request = mock("request")
helper.stub!(:request).and_return(request)
request.stub!(:request_uri).and_return("/admin/pages")
helper.nav_link_to("Pages", "/admin/pages").should =~ /<strong>/
- helper.nav_link_to("Snippets", "/admin/snippets").should_not =~ /<strong>/
end
it "should render an admin link without translation" do
helper.nav_link_to("Foo", "/admin/foo").should == '<a href="/admin/foo">Foo</a>'
end
@@ -173,10 +172,10 @@
helper.admin.should == Radiant::AdminUI.instance
end
it "should return filter options for select" do
helper.filter_options_for_select.should =~ %r{<option value=\"\"><none></option>}
- helper.filter_options_for_select.should =~ %r{<option value=\"Markdown\">Markdown</option>}
+ helper.filter_options_for_select.should =~ %r{<option value=\"Basic\">Basic</option>}
end
it "should include the regions helper" do
ApplicationHelper.included_modules.should include(Admin::RegionsHelper)
end