About 50 results
Open links in new tab
  1. RSpec: Behaviour Driven Development for Ruby

    This definitive guide from RSpec’s lead developer shows you how to use RSpec to drive more maintainable designs, specify and document expected behavior, and prevent regressions during …

  2. Documentation - RSpec

    rspec-rails: Supports using RSpec to test Ruby on Rails applications in place of Rails' built-in test framework. The API documentation contains details about all public APIs supported by RSpec.

  3. RSpec Core

    RSpec.describe Account do it "has a balance of zero when first opened" do # example code goes here - for more on the # code inside the examples, see rspec-expectations # and rspec-mocks end end

  4. About RSpec

    RSpec 1.0 was released in May of 2007, and included many of the features that are still present in RSpec today. RSpec 1's runner had many great features but had reached a point where it was slow …

  5. RSpec Rails

    rspec-rails extends Rails’ built-in testing framework to support rspec examples for requests, controllers, models, views, helpers, mailers and routing. It is a thin framework around Rails own helpers and you …

  6. Built in matchers - RSpec

    rspec-expectations ships with a number of built-in matchers. Each matcher can be used with expect(..).to or expect(..).not_to to define positive and negative expectations respectively on an object.

  7. Feature specs

    When I run rspec spec/features/widget_management_spec.rb Then the example should pass.

  8. Request specs

    With request specs, you can: specify a single request specify multiple requests across multiple controllers specify multiple requests across multiple sessions Check the rails documentation on …

  9. RSpec Rails

    rspec-rails extends Rails’ built-in testing framework to support rspec examples for requests, controllers, models, views, helpers, mailers and routing. It is a thin framework around Rails own helpers and you …

  10. Spies - RSpec

    Note: The have_received API shown here will only work if you are using rspec-expectations. Note: have_received(...).with(...) is unable to work properly when passed arguments are mutated after the …