diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/attributes/boolean_spec.rb | 2 | ||||
-rw-r--r-- | spec/attributes/float_spec.rb | 2 | ||||
-rw-r--r-- | spec/attributes/header_spec.rb | 2 | ||||
-rw-r--r-- | spec/attributes/integer_spec.rb | 2 | ||||
-rw-r--r-- | spec/attributes/string_spec.rb | 2 | ||||
-rw-r--r-- | spec/attributes/time_spec.rb | 2 | ||||
-rw-r--r-- | spec/engines/sql/unit/predicates/in_spec.rb | 2 | ||||
-rw-r--r-- | spec/relations/join_spec.rb | 2 | ||||
-rw-r--r-- | spec/relations/relation_spec.rb | 2 | ||||
-rw-r--r-- | spec/shared/relation_spec.rb | 32 | ||||
-rw-r--r-- | spec/support/check.rb | 2 | ||||
-rw-r--r-- | spec/support/connections/mysql_connection.rb | 2 | ||||
-rw-r--r-- | spec/support/connections/oracle_connection.rb | 2 | ||||
-rw-r--r-- | spec/support/connections/postgresql_connection.rb | 2 | ||||
-rw-r--r-- | spec/support/guards.rb | 2 | ||||
-rw-r--r-- | spec/support/matchers.rb | 2 | ||||
-rw-r--r-- | spec/support/matchers/have_rows.rb | 2 | ||||
-rw-r--r-- | spec/support/model.rb | 2 |
18 files changed, 33 insertions, 33 deletions
diff --git a/spec/attributes/boolean_spec.rb b/spec/attributes/boolean_spec.rb index bb7eeb886d..12b243e828 100644 --- a/spec/attributes/boolean_spec.rb +++ b/spec/attributes/boolean_spec.rb @@ -54,4 +54,4 @@ module Arel end end end -end
\ No newline at end of file +end diff --git a/spec/attributes/float_spec.rb b/spec/attributes/float_spec.rb index 3d8acbde7b..3a9a8debbc 100644 --- a/spec/attributes/float_spec.rb +++ b/spec/attributes/float_spec.rb @@ -116,4 +116,4 @@ module Arel end end end -end
\ No newline at end of file +end diff --git a/spec/attributes/header_spec.rb b/spec/attributes/header_spec.rb index 8fb4007003..51cba93df3 100644 --- a/spec/attributes/header_spec.rb +++ b/spec/attributes/header_spec.rb @@ -39,4 +39,4 @@ module Arel end end end -end
\ No newline at end of file +end diff --git a/spec/attributes/integer_spec.rb b/spec/attributes/integer_spec.rb index 611bbf2b24..59b7afb2b4 100644 --- a/spec/attributes/integer_spec.rb +++ b/spec/attributes/integer_spec.rb @@ -116,4 +116,4 @@ module Arel end end end -end
\ No newline at end of file +end diff --git a/spec/attributes/string_spec.rb b/spec/attributes/string_spec.rb index f6d65dd045..487d82249d 100644 --- a/spec/attributes/string_spec.rb +++ b/spec/attributes/string_spec.rb @@ -40,4 +40,4 @@ module Arel end end end -end
\ No newline at end of file +end diff --git a/spec/attributes/time_spec.rb b/spec/attributes/time_spec.rb index fcbe4f58e5..8cee574c51 100644 --- a/spec/attributes/time_spec.rb +++ b/spec/attributes/time_spec.rb @@ -19,4 +19,4 @@ module Arel it "works" end end -end
\ No newline at end of file +end diff --git a/spec/engines/sql/unit/predicates/in_spec.rb b/spec/engines/sql/unit/predicates/in_spec.rb index f62ee6e829..45aa12bac6 100644 --- a/spec/engines/sql/unit/predicates/in_spec.rb +++ b/spec/engines/sql/unit/predicates/in_spec.rb @@ -99,7 +99,7 @@ module Arel end end end - + describe 'when relating to a range with an excluded end' do before do @range = 1...3 diff --git a/spec/relations/join_spec.rb b/spec/relations/join_spec.rb index 3894d175e8..d980451ca9 100644 --- a/spec/relations/join_spec.rb +++ b/spec/relations/join_spec.rb @@ -39,4 +39,4 @@ describe "Arel" do it_should_behave_like 'A Relation' end -end
\ No newline at end of file +end diff --git a/spec/relations/relation_spec.rb b/spec/relations/relation_spec.rb index 0381f8759d..c660ac3597 100644 --- a/spec/relations/relation_spec.rb +++ b/spec/relations/relation_spec.rb @@ -28,4 +28,4 @@ describe "Arel" do end end end -end
\ No newline at end of file +end diff --git a/spec/shared/relation_spec.rb b/spec/shared/relation_spec.rb index e0c74fc7ee..8fd478d05f 100644 --- a/spec/shared/relation_spec.rb +++ b/spec/shared/relation_spec.rb @@ -44,7 +44,7 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:age]] != @pivot[@relation[:age]] } @relation.where(@relation[:age].not_eq(@pivot[@relation[:age]])).should have_rows(expected) end - + it "finds rows with an not eq complement predicate" do expected = @expected.select { |r| r[@relation[:age]] == @pivot[@relation[:age]] } @relation.where(@relation[:age].not_eq(@pivot[@relation[:age]]).complement).should have_rows(expected) @@ -54,7 +54,7 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:age]] < @pivot[@relation[:age]] } @relation.where(@relation[:age].lt(@pivot[@relation[:age]])).should have_rows(expected) end - + it "finds rows with a less than complement predicate" do expected = @expected.select { |r| r[@relation[:age]] >= @pivot[@relation[:age]] } @relation.where(@relation[:age].lt(@pivot[@relation[:age]]).complement).should have_rows(expected) @@ -64,7 +64,7 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:age]] <= @pivot[@relation[:age]] } @relation.where(@relation[:age].lteq(@pivot[@relation[:age]])).should have_rows(expected) end - + it "finds rows with a less than or equal to complement predicate" do expected = @expected.select { |r| r[@relation[:age]] > @pivot[@relation[:age]] } @relation.where(@relation[:age].lteq(@pivot[@relation[:age]]).complement).should have_rows(expected) @@ -74,7 +74,7 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:age]] > @pivot[@relation[:age]] } @relation.where(@relation[:age].gt(@pivot[@relation[:age]])).should have_rows(expected) end - + it "finds rows with a greater than complement predicate" do expected = @expected.select { |r| r[@relation[:age]] <= @pivot[@relation[:age]] } @relation.where(@relation[:age].gt(@pivot[@relation[:age]]).complement).should have_rows(expected) @@ -84,7 +84,7 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:age]] >= @pivot[@relation[:age]] } @relation.where(@relation[:age].gteq(@pivot[@relation[:age]])).should have_rows(expected) end - + it "finds rows with a greater than or equal to complement predicate" do expected = @expected.select { |r| r[@relation[:age]] < @pivot[@relation[:age]] } @relation.where(@relation[:age].gteq(@pivot[@relation[:age]]).complement).should have_rows(expected) @@ -94,17 +94,17 @@ share_examples_for 'A Relation' do expected = @expected.select { |r| r[@relation[:name]] =~ /#{@pivot[@relation[:name]]}/ } @relation.where(@relation[:name].matches(/#{@pivot[@relation[:name]]}/)).should have_rows(expected) end - + it "finds rows with a matches complement predicate" do expected = @expected.select { |r| r[@relation[:name]] !~ /#{@pivot[@relation[:name]]}/ } @relation.where(@relation[:name].matches(/#{@pivot[@relation[:name]]}/).complement).should have_rows(expected) end - + it "finds rows with a not matches predicate" do expected = @expected.select { |r| r[@relation[:name]] !~ /#{@pivot[@relation[:name]]}/ } @relation.where(@relation[:name].not_matches(/#{@pivot[@relation[:name]]}/)).should have_rows(expected) end - + it "finds rows with a not matches complement predicate" do expected = @expected.select { |r| r[@relation[:name]] =~ /#{@pivot[@relation[:name]]}/ } @relation.where(@relation[:name].not_matches(/#{@pivot[@relation[:name]]}/).complement).should have_rows(expected) @@ -114,37 +114,37 @@ share_examples_for 'A Relation' do expected = @expected.select {|r| r[@relation[:age]] >=3 && r[@relation[:age]] <= 20} @relation.where(@relation[:age].in(3..20)).should have_rows(expected) end - + it "finds rows with an in complement predicate" do expected = @expected.select {|r| !(r[@relation[:age]] >=3 && r[@relation[:age]] <= 20)} @relation.where(@relation[:age].in(3..20).complement).should have_rows(expected) end - + it "finds rows with a not in predicate" do expected = @expected.select {|r| !(r[@relation[:age]] >=3 && r[@relation[:age]] <= 20)} @relation.where(@relation[:age].not_in(3..20)).should have_rows(expected) end - + it "finds rows with a not in complement predicate" do expected = @expected.select {|r| r[@relation[:age]] >=3 && r[@relation[:age]] <= 20} @relation.where(@relation[:age].not_in(3..20).complement).should have_rows(expected) end - + it "finds rows with a polyadic predicate of class Any" do expected = @expected.select {|r| [2,4,8,16].include?(r[@relation[:age]])} @relation.where(@relation[:age].in_any([2,4], [8, 16])).should have_rows(expected) end - + it "finds rows with a polyadic predicate of class Any complement" do expected = @expected.select {|r| ![2,4,8,16].include?(r[@relation[:age]])} @relation.where(@relation[:age].in_any([2,4], [8, 16]).complement).should have_rows(expected) end - + it "finds rows with a polyadic predicate of class All" do expected = @expected.select {|r| r[@relation[:name]] =~ /Name/ && r[@relation[:name]] =~ /1/} @relation.where(@relation[:name].matches_all(/Name/, /1/)).should have_rows(expected) end - + it "finds rows with a polyadic predicate of class All complement" do expected = @expected.select {|r| !(r[@relation[:name]] =~ /Name/ && r[@relation[:name]] =~ /1/)} @relation.where(@relation[:name].matches_all(/Name/, /1/).complement).should have_rows(expected) @@ -221,4 +221,4 @@ share_examples_for 'A Relation' do actual.should == expected[3..-1] end end -end
\ No newline at end of file +end diff --git a/spec/support/check.rb b/spec/support/check.rb index 0a89349629..c9adce420c 100644 --- a/spec/support/check.rb +++ b/spec/support/check.rb @@ -3,4 +3,4 @@ module Check # See: https://rspec.lighthouseapp.com/projects/5645/tickets/504 def check(*args) end -end
\ No newline at end of file +end diff --git a/spec/support/connections/mysql_connection.rb b/spec/support/connections/mysql_connection.rb index de9d05c2ce..c924c27080 100644 --- a/spec/support/connections/mysql_connection.rb +++ b/spec/support/connections/mysql_connection.rb @@ -11,4 +11,4 @@ ActiveRecord::Base.configurations = { :encoding => 'utf8', :database => 'arel_unit', } -}
\ No newline at end of file +} diff --git a/spec/support/connections/oracle_connection.rb b/spec/support/connections/oracle_connection.rb index c28602b134..309d127071 100644 --- a/spec/support/connections/oracle_connection.rb +++ b/spec/support/connections/oracle_connection.rb @@ -14,4 +14,4 @@ ActiveRecord::Base.configurations = { :password => 'arel_unit', :database => 'orcl', } -}
\ No newline at end of file +} diff --git a/spec/support/connections/postgresql_connection.rb b/spec/support/connections/postgresql_connection.rb index 34d304efa9..692533d10d 100644 --- a/spec/support/connections/postgresql_connection.rb +++ b/spec/support/connections/postgresql_connection.rb @@ -10,4 +10,4 @@ ActiveRecord::Base.configurations = { :encoding => 'utf8', :database => 'arel_unit', } -}
\ No newline at end of file +} diff --git a/spec/support/guards.rb b/spec/support/guards.rb index cfa4b7b79a..db6075f73a 100644 --- a/spec/support/guards.rb +++ b/spec/support/guards.rb @@ -25,4 +25,4 @@ module AdapterGuards def valid_adapters %w[mysql postgresql sqlite3 oracle] end -end
\ No newline at end of file +end diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index 8cef5d947e..5f51a68633 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -1,4 +1,4 @@ require "support/matchers/be_like" require "support/matchers/disambiguate_attributes" require "support/matchers/hash_the_same_as" -require "support/matchers/have_rows"
\ No newline at end of file +require "support/matchers/have_rows" diff --git a/spec/support/matchers/have_rows.rb b/spec/support/matchers/have_rows.rb index 7d9c6a20c9..e476d25f4f 100644 --- a/spec/support/matchers/have_rows.rb +++ b/spec/support/matchers/have_rows.rb @@ -15,4 +15,4 @@ module Matchers found.compact.length == expected.length && got.compact.length == expected.length end end -end
\ No newline at end of file +end diff --git a/spec/support/model.rb b/spec/support/model.rb index be692e53ec..d5be35cbba 100644 --- a/spec/support/model.rb +++ b/spec/support/model.rb @@ -59,4 +59,4 @@ module Arel insert.record end end -end
\ No newline at end of file +end |