We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @sebrose @JonJagger - great suggestions from you below:
Hi Seb, a few notes from my BDD Kickstart attendance...
require './coordinate'
which is perhaps better as require_relative 'coordinate'
def shout(person, shout) if (!@shouts.key?(person)) @shouts[person] = [ ] end @shouts[person].push(shout) end
I think this would be more idiomatic like this...
def shout(person, shout) @shouts[person] ||= [ ] @shouts[person].push(shout) end
there are parentheses around the if expression which is unusual.
Then('{word} should hear {word}') do |hearer,shouter| expect(can_hear?(hearer,shouter)).to be_truthy end
I find this slightly wordy. Using plain minitest it is
Then('{word} should hear {word}') do |hearer,shouter| assert can_hear?(hearer,shouter) end
To do this I added (and required) the following env.rb file which seemed to do the trick.
require 'minitest/spec'
class MinitestWorld include Minitest::Assertions attr_accessor :assertions def initialize self.assertions = 0 end end World do MinitestWorld.new end
Cheers Jon
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @sebrose @JonJagger - great suggestions from you below:
Hi Seb,
a few notes from my BDD Kickstart attendance...
which is perhaps better as
require_relative 'coordinate'
I think this would be more idiomatic like this...
there are parentheses around the if expression which is unusual.
For example...
I find this slightly wordy. Using plain minitest it is
To do this I added (and required) the following env.rb file which seemed to do the trick.
require 'minitest/spec'
Cheers
Jon
The text was updated successfully, but these errors were encountered: