spec/cream/configure/rails_spec.rb in cream-0.5.9 vs spec/cream/configure/rails_spec.rb in cream-0.5.10
- old
+ new
@@ -18,11 +18,11 @@
describe "Rails extension" do
describe 'Extensions' do
it "should extend Action View with Roles helper instance_methods and specific role methods" do
after_init :view do
:view.should be_extended_with Cream::View, :role, :host, :user_action_menu
- :view.should be_extended_with Cream::Helper, :role
+ :view.should be_extended_with Cream::Helper, :role, :auth_label
end
init_app_railties :minimal, :view
end
@@ -33,8 +33,12 @@
:controller.should be_extended_with Cream::Helper, :role, :local_host, :auth_label
:controller.should be_extended_with Cream::Link, :session, :registration, :rest, :session
end
init_app_railties :minimal, :view
+ end
+
+ it "should work with safe_concat" do
+ "abc".html_safe.should == "abc"
end
end
end