search for: stack_spec

Displaying 5 results from an estimated 5 matches for "stack_spec".

2007 Jan 19
1
Error when following online tutorial
Hi I''m following the tutorial from the website. I''ve got to the end, but I''ve been getting this failure: ''A stack with one item should return top when you send it top FAILED "one item" should equal "one item" ./stack_spec.rb:28: ./stack_spec.rb:27:in ''instance_eval'' 3 specs 1 failure I do not understand this. Surely "one item" does equal "one item". I''m a beginner and I''m just trying to copy exactly what it says on the tin. What is going on? Can...
2006 Dec 04
1
rspec tutorial - "one item" should equal "one item"
...Now the stack is supposed to be returning "one item", but instead of passing the test as show in the tutorial, I get: 1) ''A stack with one item should return top when you send it ''top'''' FAILED "one item" should equal "one item" ./stack_spec.rb:28: Finished in 0.0 seconds 3 specifications, 1 failure I would guess this is some sort of issue about equivalence of two instances versus having the same instance in Ruby. Am I right? At any rate, is this behavior that''s changed since the tutorial, or do I need to look harder...
2006 Aug 28
1
slightly different view
All, One of the things I learned when I started to do TDD was that you should write enough tests to give you the courage to move forward. For some, that results in more tests than others. In approaching BDD, my initial thinking was to write examples for all of the possible behaviours in every context. I''ve had a change of thinking on this. Please check out my blog on it and let me know
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing out releases via Rubyforge''s gem server and update the website. We have therefore made the first beta of 0.9 available - both prepackaged and tagged in subversion (see below). RSpec 0.9 introduces a new API for expectations, which essentially means that your underscores go away (there has been other discussions
2007 Jul 26
5
Coding standards and whitespace
...c/examples/custom_expectation_matchers.rb rspec/examples/file_accessor.rb rspec/examples/file_accessor_spec.rb rspec/examples/helper_method_example.rb rspec/examples/legacy_spec.rb rspec/examples/predicate_example.rb rspec/examples/shared_behaviours_example.rb rspec/examples/stack.rb rspec/examples/stack_spec.rb rspec/examples/stubbing_example.rb rspec/examples/test_case_adapter_example.rb rspec/examples/test_case_spec.rb rspec/failing_examples/failure_in_setup.rb rspec/failing_examples/failure_in_teardown.rb rspec/failing_examples/mocking_example.rb rspec/failing_examples/predicate_example.rb rspec/fai...