Skip to content

Commit fa54e35

Browse files
committed
[Rails3] Adding a Gemfile. Using bundler for local development.
1 parent 3546db7 commit fa54e35

File tree

4 files changed

+78
-1
lines changed

4 files changed

+78
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pkg/
55
doc/
66
*.gem
77
.bundle
8+

Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source :rubygems
2+
3+
gem 'arel', :path => ENV["AREL_SOURCE"] if ENV["AREL_SOURCE"]
4+
gem 'activerecord', :path => ENV['RAILS_SOURCE']
5+
6+
group :development do
7+
gem 'rake'
8+
gem 'mocha', '0.9.8'
9+
gem 'shoulda', '2.10.3'
10+
end

RAILS3_NOTES

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
= SQL Server Testing Setup
3+
4+
1) $ bundle install
5+
2)
6+
27
= Arel Testing Setup
38

49
You should have both rails and the adapter cloned to your typical repo folder. Let's say this
@@ -15,9 +20,68 @@ this project root. From here you can start testing, but it is best practice to u
1520
$ bundle exec rake spec:sqlserver
1621

1722

23+
24+
= SQL Server Todo
25+
26+
2384 tests, 9524 assertions, 30 failures, 37 errors
27+
28+
* Verify coerced tests
29+
Undefined coerced test: AdapterTest#test_add_limit_offset_should_sanitize_sql_injection_for_limit_without_comas
30+
Undefined coerced test: AdapterTest#test_add_limit_offset_should_sanitize_sql_injection_for_limit_with_comas
31+
Undefined coerced test: EagerAssociationTest#test_eager_with_has_many_and_limit_and_high_offset_and_multiple_array_conditions
32+
Undefined coerced test: EagerAssociationTest#test_eager_with_has_many_and_limit_and_high_offset_and_multiple_hash_conditions
33+
Undefined coerced test: EagerAssociationTest#test_count_with_include
34+
Undefined coerced test: AttributeMethodsTest#test_typecast_attribute_from_select_to_false
35+
Undefined coerced test: AttributeMethodsTest#test_typecast_attribute_from_select_to_true
36+
Undefined coerced test: BasicsTest#test_read_attributes_before_type_cast_on_datetime
37+
Undefined coerced test: CalculationsTest#test_should_sum_expression
38+
Undefined coerced test: InheritanceTest#test_a_bad_type_column
39+
Undefined coerced test: InheritanceTest#test_eager_load_belongs_to_primary_key_quoting
40+
Undefined coerced test: NestedScopingTest#test_merged_scoped_find
41+
Undefined coerced test: MigrationTest#test_add_column_not_null_without_default
42+
Undefined coerced test: ChangeTableMigrationsTest#test_string_creates_string_column
43+
Undefined coerced test: NamedScopeTest#test_named_scopes_honor_current_scopes_from_when_defined
44+
Undefined coerced test: QueryCacheTest#test_cache_does_not_wrap_string_results_in_arrays
45+
46+
47+
1848
= Arel Todo
1949

20-
338 examples, 64 failures, 3 pending
50+
338 examples, 6 failures, 3 pending
51+
52+
* integration/joins/
53+
√ with_adjacency_spec.rb
54+
x with_aggregations_spec.rb # => 1 failure (debug after take spec)
55+
√ with_compounds_spec.rb
56+
* unit/predicates
57+
√ binary_spec.rb
58+
√ equality_spec.rb
59+
√ in_spec.rb
60+
√ noteq_spec.rb
61+
√ predicates_spec.rb
62+
* unit/primitives
63+
√ attribute_spec.rb
64+
√ expression_spec.rb
65+
√ literal_spec.rb
66+
√ value_spec.rb
67+
* unit/relations
68+
√ alias_spec.rb
69+
x delete_spec.rb # => 1 failure (debug after take spec)
70+
√ from_spec.rb
71+
√ group_spec.rb
72+
√ having_spec.rb
73+
√ insert_spec.rb
74+
√ join_spec.rb
75+
x lock_spec.rb # => 1 failure (todo on purpose)
76+
- Add more tests.
77+
√ order_spec.rb
78+
√ project_spec.rb
79+
• skip_spec.rb
80+
√ table_spec.rb
81+
• take_spec.rb
82+
x update_spec.rb # => 1 failure (debug after take spec)
83+
√ where_spec.rb
84+
2185

2286
* Review/remove our long winded add_limit_offset!
2387
Supporting:

test/cases/sqlserver_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
ACTIVERECORD_TEST_ROOT = File.expand_path(File.join(ENV['RAILS_SOURCE'],'activerecord','test'))
88

99
require 'rubygems'
10+
require 'bundler'
11+
Bundler.setup
1012
require 'shoulda'
1113
require 'mocha'
1214
[ File.expand_path(File.join(File.dirname(__FILE__),'..','..','test')),

0 commit comments

Comments
 (0)