Sha256: d1ec33f7510dfcf1f702c2fa5ddd108b1e59375c772c1f00227454e2472b58be

Contents?: true

Size: 675 Bytes

Versions: 18

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'
require 'lib/guard/rspec/inspectors/shared_examples'

klass = Guard::RSpec::Inspectors::SimpleInspector

describe klass do
  include_examples 'inspector', klass

  # Use real paths because BaseInspector#_clean will be used to clean them
  let(:other_paths) { [
    'spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb',
    'spec/lib/guard/rspec/runner_spec.rb'
  ] }

  it 'returns paths and do not bothers about failed locations' do
    2.times do
      expect(inspector.paths(paths)).to eq(paths)
      inspector.failed(failed_locations)
      expect(inspector.paths(other_paths)).to eq(other_paths)
      inspector.failed([])
    end
  end
end

Version data entries

18 entries across 16 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/guard-rspec-4.3.1/spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/guard-rspec-4.3.1/spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/guard-rspec-4.3.1/spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.3.1 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.3.0 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.10 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.9 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.8 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.7 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.6 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.5 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.4 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.3 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.2 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.1 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.2.0 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.1.1 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
guard-rspec-4.1.0 spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb