Sha256: 98830ec3e4980f81e4002f4b251af3821da183eb2284101be4b575c2941a08e9
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
require 'spec_helper' class Rails32ResolverTest include Trackman::Assets::Components::Rails32PathResolver end describe Trackman::Assets::Components::Rails32PathResolver do Rails32PathResolver = Trackman::Assets::Components::Rails32PathResolver before :all do @test = Rails32ResolverTest.new end it "does not throw when sprockets throws" do sprocket = double "SprocketEnvironment" sprocket.stub(:resolve).and_raise(Exception) @test.stub(:prepare_for_sprocket).and_return('some/path') @test.stub(:sprockets).and_return(sprocket) lambda { @test.translate 'some/path', 'path/to/my/parent' }.should_not raise_error end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trackman-0.4.2 | spec/rails32_path_resolver_spec.rb |
trackman-0.4.1 | spec/rails32_path_resolver_spec.rb |
trackman-0.4.0 | spec/rails32_path_resolver_spec.rb |