Sha256: 543667c2534f2ef05fe8975ae962d581e0bbc762f16ce9a6f6913940b9115cc8
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
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 } before do Exvo::Helpers.stub(:env).and_return('production') end it "returns a javascript_include_tag based on env" do view_helper.should_receive(:javascript_include_tag).with("//d33gjlr95u9pgf.cloudfront.net/javascripts/plugins.js") view_helper.javascript_bundle_include_tag("plugins") end it "returns a stylesheet_link_tag based on env" do view_helper.should_receive(:stylesheet_link_tag).with("//themes.exvo.com/stylesheets/themes/frost/all.css", { :media => 'all' }) view_helper.themes_stylesheet_link_tag("frost/all", :media => 'all') end it "returns an image_tag based on env" do view_helper.should_receive(:image_tag).with("//themes.exvo.com/stylesheets/images/icons/exvo.png", { :alt => 'Exvo' }) view_helper.themes_image_tag("icons/exvo.png", :alt => 'Exvo') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exvo_helpers-0.1.0 | spec/exvo_helpers/view_helpers_spec.rb |
exvo_helpers-0.0.8 | spec/exvo_helpers/view_helpers_spec.rb |