Sha256: 38720ef1f4627f9dbf3a545d6f78a67c243317b4fefffab24235aaa9ee2109d5

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

require 'test_helper'
require 'rubycritic/browser'

describe Rubycritic::Browser do
  before do
    @report_path = 'tmp/rubycritic/overview.html'
    @browser = Rubycritic::Browser.new @report_path
  end

  describe '#open' do
    it 'should be open report with launch browser' do
      Launchy.stubs(:open).returns(true)
      @browser.open.must_equal true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubycritic-2.9.2 test/lib/rubycritic/browser_test.rb
rubycritic-2.9.1 test/lib/rubycritic/browser_test.rb
rubycritic-2.9.0 test/lib/rubycritic/browser_test.rb
rubycritic-2.8.0 test/lib/rubycritic/browser_test.rb
rubycritic-2.7.1 test/lib/rubycritic/browser_test.rb
rubycritic-2.7.0 test/lib/rubycritic/browser_test.rb