Sha256: 37450728e701b7a85a1b94bee39e24adff29f81c590e289685f0639b1f08146c

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

require "spec_helper"
require "autotest/rails_rspec2"

describe Autotest::RailsRspec2 do
  before(:each) do
    rails_rspec2_autotest = Autotest::RailsRspec2.new
    @re = rails_rspec2_autotest.exceptions
  end

  it "should match './log/test.log'" do
    @re.should match('./log/test.log')
  end

  it "should match 'log/test.log'" do
    @re.should match('log/test.log')
  end

  it "should not match './spec/models/user_spec.rb'" do
    @re.should_not match('./spec/models/user_spec.rb')
  end

  it "should not match 'spec/models/user_spec.rb'" do
    @re.should_not match('spec/models/user_spec.rb')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.rc spec/autotest/rails_rspec2_spec.rb
rspec-rails-2.0.0.beta.22 spec/autotest/rails_rspec2_spec.rb