Sha256: 40efb95f98e9fc763a9e22d563e242a62c4396665c8874a7a15636554c0a8f82

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/unit_spec_helper")

module JsSpec
  describe SpecFileRunner, "#spec_files" do
    attr_reader :absolute_path, :relative_path, :file, :runner

    before do
      @absolute_path = "#{spec_root_path}/failing_spec.js"
      @relative_path = "/specs/failing_spec.js"
      @file = File.new(absolute_path, relative_path)
      @runner = SpecFileRunner.new(file)
    end

    it "returns the single File to run in an Array" do
      runner.spec_files.should == [file]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
js_spec-0.0.1 spec/unit/spec_file_runner_spec.rb