0
@@ -4,13 +4,13 @@ describe Topic do
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/i0
topics(:default).update_attribute :forum, forums(:other)
0
posts(:default).reload.forum.should == forums(:other)
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/i0
topics(:default).update_attribute :forum, forums(:other)
0
posts(:other).reload.forum.should == forums(:default)
0
@@ -129,27 +129,27 @@ describe Topic, "being moved to another forum" do
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/i0
@moving_forum.should change { @forum.reload.topics.size }.by(-1)
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/i0
@moving_forum.should change { @forum.reload.posts.size }.by(-1)
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/i0
@moving_forum.should change { @new_forum.reload.topics.size }.by(1)
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/i0
@moving_forum.should change { @new_forum.reload.posts.size }.by(1)
0
it "moves posts to new forum" do
0
- pending('Causing SQLite3::SQLException')
0
+ pending('Causing SQLite3::SQLException')
if Topic.connection.class.name =~ /sqlite/i0
@topic.posts.each { |p| p.forum.should == @forum }
0
@topic.posts.each { |p| p.reload.forum.should == @new_forum }
Comments
No one has commented yet.