Sha256: c0cb85bbb6b75e5dde493ba8727687393cd8a99a62c27e41186291f9818542af

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require 'spec_helper'

describe BootstrapViewportMetaHelper, :type => :helper do
  describe :bootstrap_viewport_meta do
    context "no arguments" do
      it "should return the default viewport meta tag" do
        viewport_meta_tag.should =="<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\" />"
      end
    end

    context "with arguments" do
      it "should return the viewport meta tag with the specified options" do
        viewport_meta_tag(initial_scale: "2.0").should =="<meta name=\"viewport\" content=\"width=device-width,initial-scale=2.0\" />"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootstrap-sass-extras-0.1.0 spec/helpers/bootstrap_viewport_meta_helper_spec.rb
bootstrap-sass-extras-0.0.7 spec/helpers/bootstrap_viewport_meta_helper_spec.rb