File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
describe "A class that is commentable" do
4
4
it "can have many root comments" do
5
- Commentable . new . comment_threads . respond_to? ( :each ) . should be_true
5
+ Commentable . new . comment_threads . respond_to? ( :each ) . should eq ( true )
6
6
end
7
7
8
8
describe "when is destroyed" do
65
65
end
66
66
67
67
it "should return comments by the passed user" do
68
- @comments . all? { |c | c . user == @user } . should be_true
68
+ @comments . all? { |c | c . user == @user } . should eq ( true )
69
69
end
70
70
71
71
72
72
it "should not return comments by other users" do
73
- @comments . any? { |c | c . user != @user } . should be_false
73
+ @comments . any? { |c | c . user != @user } . should eq ( false )
74
74
end
75
75
end
76
76
end
89
89
end
90
90
91
91
it "should return its own comments, ordered with the newest first" do
92
- @comments . all? { |c | c . commentable_type == @commentable . class . to_s and c . commentable_id == @commentable . id } . should be_true
92
+ @comments . all? { |c | c . commentable_type == @commentable . class . to_s and c . commentable_id == @commentable . id } . should eq ( true )
93
93
@comments . each_cons ( 2 ) { |c , c2 | c . created_at . should > c2 . created_at }
94
94
end
95
95
96
96
it "should not include comments for other commentables" do
97
- @comments . any? { |c | c . commentable_type != @commentable . class . to_s or c . commentable_id != @commentable . id } . should be_false
97
+ @comments . any? { |c | c . commentable_type != @commentable . class . to_s or c . commentable_id != @commentable . id } . should eq ( false )
98
98
end
99
99
end
100
100
end
You can’t perform that action at this time.
0 commit comments