Sha256: 7cbe63d8fe9f4c0804a8e861e5521a1fb3716a003ec9c9aac49dcb49063e4575

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
require 'fixtures/branch_badness'

include Fixtures

describe Nitpick::Warnings::UselessBranch do
  it "should match against branches returning only true and false" do
    warning = Nitpick::Warnings::UselessBranch.new(s(:cond), s(:true), s(:false))
    warning.matches?.should be_true
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
kevinclark-nitpick-1.0.0 spec/useless_branch_spec.rb
kevinclark-nitpick-1.0.1 spec/useless_branch_spec.rb
nitpick-1.0.0 spec/useless_branch_spec.rb
nitpick-1.0.1 spec/useless_branch_spec.rb
nitpick-1.0.2 spec/useless_branch_spec.rb