public
Fork of courtenay/altered_beast
Description: Ground-up rewrite of Beast, a Ruby on Rails forum.
Homepage: http://activereload.lighthouseapp.com/projects/7537-altered-beast/
Clone URL: git://github.com/fiveruns/altered_beast.git
Search Repo:
please dont penalize the rest of us just because sqlite3 sucks
rick (author)
Sun Apr 27 09:59:31 -0700 2008
commit  54642e01410f93be9d3716e5ac634a7c8248b0aa
tree    3d3e9bb03c705deca7bb17bf4321a07184cace96
parent  0251287b83358934f3eea49a7448d9ed8d2516ec
...
4
5
6
7
 
8
9
10
11
12
13
 
14
15
16
...
129
130
131
132
 
133
134
135
136
137
 
138
139
140
141
142
 
143
144
145
146
147
 
148
149
150
151
152
 
153
154
155
...
4
5
6
 
7
8
9
10
11
12
 
13
14
15
16
...
129
130
131
 
132
133
134
135
136
 
137
138
139
140
141
 
142
143
144
145
146
 
147
148
149
150
151
 
152
153
154
155
0
@@ -4,13 +4,13 @@ describe Topic do
0
   define_models
0
 
0
   it "updates forum_id for posts when topic forum is changed" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     topics(:default).update_attribute :forum, forums(:other)
0
     posts(:default).reload.forum.should == forums(:other)
0
   end
0
   
0
   it "leaves other topic post #forum_ids alone when updating forum" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     topics(:default).update_attribute :forum, forums(:other)
0
     posts(:other).reload.forum.should == forums(:default)
0
   end
0
@@ -129,27 +129,27 @@ describe Topic, "being moved to another forum" do
0
   end
0
   
0
   it "decrements old forums cached topics_count" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     @moving_forum.should change { @forum.reload.topics.size }.by(-1)
0
   end
0
   
0
   it "decrements old forums cached posts_count" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     @moving_forum.should change { @forum.reload.posts.size }.by(-1)
0
   end
0
   
0
   it "increments new forums cached topics_count" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     @moving_forum.should change { @new_forum.reload.topics.size }.by(1)
0
   end
0
   
0
   it "increments new forums cached posts_count" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     @moving_forum.should change { @new_forum.reload.posts.size }.by(1)
0
   end
0
   
0
   it "moves posts to new forum" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException') if Topic.connection.class.name =~ /sqlite/i
0
     @topic.posts.each { |p| p.forum.should == @forum }
0
     @moving_forum.call
0
     @topic.posts.each { |p| p.reload.forum.should == @new_forum }

Comments

    No one has commented yet.