Sha256: c41637d8498ed34393cb86cbec1046f14953d5e177e4f483d491370600098e0a

Contents?: true

Size: 871 Bytes

Versions: 3

Compression:

Stored size: 871 Bytes

Contents

require 'spec_helper'

describe StoryboardLint::Linter do
  describe "Default Linter" do
    before :all do
      src_root = File.join(File.dirname(__FILE__), "fixtures", "StoryboardLintTest")
      @matcher = StoryboardLint::Matcher.new(nil)
      @sbs = StoryboardLint::StoryboardScanner.new(src_root)
      @src = StoryboardLint::SourceScanner.new(src_root, @matcher)
      @l = StoryboardLint::Linter.new(@sbs, @src, @matcher)
    end
    
    it "should require a StoryboardScanner on init" do
      expect {StoryboardLint::Linter.new(nil, @src, @matcher)}.to raise_error
    end
    
    it "should require a SourceScanner on init" do
      expect {StoryboardLint::Linter.new(@sbs, nil, @matcher)}.to raise_error
    end
    
    it "should require a Matcher on init" do
      expect {StoryboardLint::Linter.new(@sbs, @src, nil)}.to raise_error
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
storyboardlint-0.2.2 spec/linter_spec.rb
storyboardlint-0.2.1 spec/linter_spec.rb
storyboardlint-0.2.0 spec/linter_spec.rb