spec/utils_spec.rb in tableficate-0.3.1 vs spec/utils_spec.rb in tableficate-0.3.2

- old
+ new

@@ -40,9 +40,11 @@ Tableficate::Utils::find_column_type(NobelPrize.joins(:nobel_prize_winner), :birthdate).should == :date end it 'should find the column for manual joins' do Tableficate::Utils::find_column_type(NobelPrizeWinner.joins('JOIN nobel_prizes ON nobel_prizes.nobel_prize_winner_id = nobel_prize_winners.id'), :shared).should == :boolean + + Tableficate::Utils::find_column_type(NobelPrizeWinner.joins('JOIN nobel_prizes USING(id, id)'), :shared).should == :boolean end it 'should return `nil` for unknown columns' do Tableficate::Utils::find_column_type(NobelPrizeWinner, :foo).should == nil end