Sha256: 2cf272d80d317046f4d800df1ab05bc24aff9a3706131f6bda9e3ab4f9ef33c3

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

class SpecViewHelper
  include Exvo::ViewHelpers
end

describe Exvo::ViewHelpers do

  describe "javascript_bundle_include_tag" do

    let(:view_helper) { SpecViewHelper.new }

    it "should return the javascript_include_tag based on env" do
      Exvo::Helpers.stub(:env).and_return('production')
      view_helper.should_receive(:javascript_include_tag).with("http://cdn.exvo.com/javascripts/plugins.js")
      view_helper.javascript_bundle_include_tag("plugins")
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exvo_helpers-0.0.5 spec/exvo_helpers/view_helpers_spec.rb