Sha256: c4d6eb09f05298bf793175c48d95b0f5aaa9f3f60e1cfd3dcb83a00b6ac037c6

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'
require 'assets_booster/package/base'
module AssetsBooster
  module Package
    shared_examples_for "a package" do
      subject{ described_class.new("test", []) }
      
      before do
        Rails.stub(:root){ "/rails" }
      end
      
      describe "name" do
        it "should return a string" do
          subject.name.should_not be_empty
        end
      end
      
      describe "view_helper_method" do
        it "should return a symbol" do
          subject.view_helper_method.should be_an_instance_of(Symbol)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
assets_booster-0.0.6 spec/package/base.rb
assets_booster-0.0.5 spec/package/base.rb
assets_booster-0.0.4 spec/package/base.rb
assets_booster-0.0.3 spec/package/base.rb
assets_booster-0.0.2 spec/package/base.rb