Sha256: 8ba710d7d6568e532e495293b6e96e384fef047a92ab5044c4091cc3dc4e5396

Contents?: true

Size: 478 Bytes

Versions: 15

Compression:

Stored size: 478 Bytes

Contents

shared_examples_for Roadie::AssetProvider do
  describe "#all(files)" do
    it "loads files in order and join them with a newline" do
      provider.should_receive(:find).with('one').twice.and_return('contents of one')
      provider.should_receive(:find).with('two').twice.and_return('contents of two')

      provider.all(%w[one two]).should == "contents of one\ncontents of two"
      provider.all(%w[two one]).should == "contents of two\ncontents of one"
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
roadie-2.4.3 spec/shared_examples/asset_provider_examples.rb
md-roadie-2.4.2.md.1 spec/shared_examples/asset_provider_examples.rb
roadie-2.4.2 spec/shared_examples/asset_provider_examples.rb
roadie-2.4.1 spec/shared_examples/asset_provider_examples.rb
roadie-2.4.0 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.4 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.3 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.2 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.1 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.0 spec/shared_examples/asset_provider_examples.rb
roadie-2.3.0.pre1 spec/shared_examples/asset_provider_examples.rb
roadie-2.2.0 spec/shared_examples/asset_provider_examples.rb
roadie-2.1.0 spec/shared_examples/asset_provider_examples.rb
roadie-2.1.0.pre2 spec/shared_examples/asset_provider_examples.rb
roadie-2.1.0.pre1 spec/shared_examples/asset_provider_examples.rb