wrong
wrong copied to clipboard
Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
I installed `wrong` to win an argument (and I won), but I couldn't run it... ``` $ ruby2.5 test_me.rb Traceback (most recent call last): 11: from test_me.rb:2:in `' 10: from...
Add short-circuit return in Wrong::FailureMessage::wrap_and_indent, to prevent infinite loop in environments where the width of Wrong::Terminal.size is incorrectly set to 0 (or
Ruby 2.6 is introducing integrated ruby parsing and AST API. This will help eliminate dependencies and may improve performance. https://ruby-doc.org/core-2.6.0.preview2/RubyVM/AST.html
Requiring Wrong and starting debug in RubyMine produces NameError: ```undefined method `evaluate' for class `IRB::Context' (NameError)``` Stacktrace: ``` /Users/***/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/wrong-0.7.1/lib/wrong/irb.rb:4:in `' /Users/***/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/wrong-0.7.1/lib/wrong/irb.rb:3:in `' /Users/***/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/wrong-0.7.1/lib/wrong/irb.rb:2:in `' /Users/***/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/wrong-0.7.1/lib/wrong.rb:12:in `require' /Users/***/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/wrong-0.7.1/lib/wrong.rb:12:in `' /Users/***/*/file.rb:10:in `require'...
Makes Wrong work together with Rails 4.0 and 4.1beta1. fixes #41
I have this spec: ``` ruby it "should create Foo" do expect{ post :create, foo: {owner_id: 1, bar_id: 1} }.to change(Foo, :count) expect(assigns(:foo).owner_id).to eq(1) expect(assigns(:foo).bar_id).to eq(1) expect(response).to redirect_to(root_path) end ```...
Using Rails 4.1 (maybe also 4.0) and Rspec-rails 2.99, the `assert` method does not work. ``` ArgumentError: wrong number of arguments (0 for 1..2) ``` I used this fix: ```...
I tried the first example in the README on Ruby 2.1.4p265, and it doesn't produce the output I expected from the description in the README. The code sample is the...
I'm not the most experienced Rubyist, but I've been enjoying using Wrong, and thought I'd have a go at fixing this issue since most of my hobbyprogramming is done on...
indentation trailing space a few extraneous newlines