Sha256: 39a59f1ec600a89329e1479a8136aef37539fe8d37bf17c9afc9e426112f3812

Contents?: true

Size: 323 Bytes

Versions: 12

Compression:

Stored size: 323 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'
 
require 'reek/options'

include Reek

describe Options, ' when given no arguments' do
  it "should retain the default sort order" do
    default_order = Options[:format]
    Options.parse_args(['nosuchfile.rb'])
    Options[:format].should == default_order
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
kevinrutherford-reek-1.1.3.1 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.10 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.2 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.3 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.4 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.5 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.6 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.7 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.8 spec/reek/options_spec.rb
kevinrutherford-reek-1.1.3.9 spec/reek/options_spec.rb
teksymmetry-reek-1.1.3.1 spec/reek/options_spec.rb
teksymmetry-reek-1.1.3.2 spec/reek/options_spec.rb