Sha256: 1b45d28c77eaa0d3bf4e7c9ce8a80f2094ebdf20144b4b962284291211ac7fb7
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
describe "jQuery-Rails" do def get_js_defaults(name, env = "production") dir = File.expand_path("../support/#{name}_app", __FILE__) Dir.chdir(dir) do `bundle install --local` `rails runner -e #{env} 'puts Rails.application.config.action_view. javascript_expansions[:defaults].inspect'`.chomp end end it "changes the default javascript expansion" do get_js_defaults("default").should == ["jquery.min", "rails"].inspect end it "uses non-minified js in development" do get_js_defaults("default", "development").should == %w(jquery rails).inspect end it "changes allows overriding the javascript expansion" do get_js_defaults("custom").should == ["foo", "bar", "baz"].inspect end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jquery-rails-0.2.2 | spec/jquery-rails_spec.rb |
jquery-rails-0.2.1 | spec/jquery-rails_spec.rb |
jquery-rails-0.2 | spec/jquery-rails_spec.rb |