Sha256: ea4df41ad8b26b57e58b8cbf9f4e95798c309a003b47f36dd7ed6f8494751b53

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

module Roadie
  describe CssNotFound do
    it "is initialized with a name" do
      error = CssNotFound.new('style.css')
      error.css_name.should == 'style.css'
      error.message.should == 'Could not find stylesheet "style.css"'
    end

    it "can be initialized with an extra message" do
      CssNotFound.new('file.css', "directory is missing").message.should ==
        'Could not find stylesheet "file.css": directory is missing'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roadie-3.0.0.pre1 spec/lib/roadie/css_not_found_spec.rb