spec/helpers/application_helper_spec.rb in radiant-0.6.6 vs spec/helpers/application_helper_spec.rb in radiant-0.6.7
- old
+ new
@@ -135,13 +135,13 @@
it "should render a timezone-adjusted timestamp" do
timestamp(Time.local(2008, 3, 30, 10, 30)).should == "10:30 <small>AM</small> on March 30, 2008"
end
it "should determine whether a meta area item should be visible" do
- meta_visible(:meta_more).should be_nil
- meta_visible(:meta_less).should == ' style="display: none"'
- meta_visible(:meta).should == ' style="display: none"'
+ meta_visible(:meta_more).should be_empty
+ meta_visible(:meta_less).should == {:style => "display:none"}
+ meta_visible(:meta).should == {:style => "display:none"}
end
it "should not have meta errors" do
meta_errors?.should be_false
end
@@ -160,7 +160,11 @@
image_submit("plus")
end
it "should provide the admin object" do
admin.should == Radiant::AdminUI.instance
+ end
+
+ it "should include the regions helper" do
+ ApplicationHelper.included_modules.should include(Admin::RegionsHelper)
end
end
\ No newline at end of file