spec/lib/locomotive/plugin_spec.rb in locomotive_plugins-1.0.1 vs spec/lib/locomotive/plugin_spec.rb in locomotive_plugins-1.1.0

- old
+ new

@@ -40,7 +40,15 @@ it 'should optionally supply a Rack application' do UselessPlugin.rack_app.should be_nil PluginWithRackApp.rack_app.should_not be_nil end + it 'should optionally supply a js3 context' do + MyPlugin.javascript_context.keys.should == [:variable, :method] + UselessPlugin.javascript_context.should == {} + end + + it 'should be able to get a js3 context' do + @plugin.respond_to?(:js3_context).should be true + end end end