forked from brynary/arel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all spec support files into spec/support
- Loading branch information
Carl Lerche
committed
Mar 12, 2010
1 parent
e346123
commit 8db90ba
Showing
20 changed files
with
46 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,6 @@ | |||
coverage/* | coverage/* | ||
config/database.yml | config/database.yml | ||
spec/fixtures/*database* | spec/support/fixtures/*database* | ||
*.DS_Store | *.DS_Store | ||
debug.log | debug.log | ||
pkg | pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
module Check | |||
# This is used to eliminate Ruby warnings on some RSpec assertion lines | |||
# See: https://rspec.lighthouseapp.com/projects/5645/tickets/504 | |||
def check(*args) | |||
end | |||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
require "support/doubles/hash" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
module AdapterGuards | |||
def adapter_is(*names) | |||
names = names.map(&:to_s) | |||
names.each{|name| verify_adapter_name(name)} | |||
yield if names.include? adapter_name | |||
end | |||
|
|||
def adapter_is_not(*names) | |||
names = names.map(&:to_s) | |||
names.each{|name| verify_adapter_name(name)} | |||
yield unless names.include? adapter_name | |||
end | |||
|
|||
def adapter_name | |||
name = ActiveRecord::Base.configurations["unit"][:adapter] | |||
name = 'oracle' if name == 'oracle_enhanced' | |||
verify_adapter_name(name) | |||
name | |||
end | |||
|
|||
def verify_adapter_name(name) | |||
raise "Invalid adapter name: #{name}" unless valid_adapters.include?(name.to_s) | |||
end | |||
|
|||
def valid_adapters | |||
%w[mysql postgresql sqlite3 oracle] | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
require "support/matchers/be_like" | |||
require "support/matchers/disambiguate_attributes" | |||
require "support/matchers/hash_the_same_as" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.