Skip to content

Instantly share code, notes, and snippets.

@ZogStriP
Created November 21, 2013 15:21
Show Gist options
  • Save ZogStriP/7583430 to your computer and use it in GitHub Desktop.
Save ZogStriP/7583430 to your computer and use it in GitHub Desktop.
Failures:
1) PostMover move_posts successfully moved to a new topic works correctly
Failure/Error: p2.topic_links.first.topic_id.should == new_topic.id
NoMethodError:
undefined method `topic_id' for nil:NilClass
# ./spec/models/post_mover_spec.rb:82:in `block (5 levels) in <top (required)>'
2) TopicLink external links works
Failure/Error: @topic.topic_links.count.should == 4
expected: 4
got: 2 (using ==)
# ./spec/models/topic_link_spec.rb:35:in `block (3 levels) in <top (required)>'
3) TopicLink counts_for and topic_map with data has the correct results
Failure/Error: array.length.should == 4
expected: 4
got: 2 (using ==)
# ./spec/models/topic_link_spec.rb:283:in `block (4 levels) in <top (required)>'
4) PostAnalyzer link_count finds links from markdown
Failure/Error: post_analyzer.link_count.should == 1
expected: 1
got: 0 (using ==)
# ./spec/models/post_analyzer_spec.rb:154:in `block (3 levels) in <top (required)>'
5) PostAnalyzer links raw_links finds a link within markdown
Failure/Error: post_analyzer.raw_links.should == ["http://www.imdb.com/name/nm2225369"]
expected: ["http://www.imdb.com/name/nm2225369"]
got: [] (using ==)
# ./spec/models/post_analyzer_spec.rb:54:in `block (4 levels) in <top (required)>'
6) Post maximum links finds links from markdown
Failure/Error: post_one_link.link_count.should == 1
expected: 1
got: 0 (using ==)
# ./spec/models/post_spec.rb:321:in `block (3 levels) in <top (required)>'
7) Post links total host usage with a previous host contains the new post's links, PLUS the previous one
Failure/Error: two_links.total_hosts_usage.should == {'disneyland.disney.go.com' => 2, 'reddit.com' => 1}
expected: {"disneyland.disney.go.com"=>2, "reddit.com"=>1}
got: {"disneyland.disney.go.com"=>1, "reddit.com"=>1} (using ==)
Diff:
@@ -1,3 +1,3 @@
-"disneyland.disney.go.com" => 2,
+"disneyland.disney.go.com" => 1,
"reddit.com" => 1
# ./spec/models/post_spec.rb:295:in `block (5 levels) in <top (required)>'
8) Post links raw_links finds a link within markdown
Failure/Error: one_link.raw_links.should == ["http://www.imdb.com/name/nm2225369"]
expected: ["http://www.imdb.com/name/nm2225369"]
got: [] (using ==)
# ./spec/models/post_spec.rb:252:in `block (4 levels) in <top (required)>'
Finished in 1 minute 41.64 seconds
3213 examples, 8 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment