Posted 30 days ago. Visible to the public. Auto-destruct in 31 days

Spreewald 2.9, 2.99 and 3.0.0 released

Versions 2.9.0, 2.99.0 and 3.0.0 of our gem Spreewald have been released.

2.9.0: Rework email steps

  • The step an email should have been sent with: does now support wildcards (* at the end of a line to ignore the rest of the line, * as single character in a line to ignore multiple lines). The step also has better error messages if an email could not be found.
  • The step show me the emails got an option to display only the email headers. Additionally, a new step show me the email( header)?s with: has been created to only show a subset of all sent emails, with a syntax similar to an email should have been sent with:.
  • The email steps an email should have been sent (from ...) (to ...) (cc ...) ..., that email should( not)? have the following lines in the body and that email should have the following content in the body: have been deprecated in favor of an email should have been sent with:.

2.99.0: Introduce deprecations

This version contains deprecation warnings for all steps that will be removed in 3.0.0.

  • The following steps were deprecated and will be removed in the upcoming major version:
    • /^the "([^"]*)" field should have no error$/ (see #134)
    • /^I should get a text response$/ (see #135)
    • /^I wait for the page to load$/ (see #136)
  • The step and disabled modifier of the step /^the "([^"]*)" checkbox should( not)? be checked( and disabled)?$/ has been deprecated.

3.0.0: Streamline Spreewald and remove stale steps

Breaking changes

  • The following steps have been removed:

    • /^the file "([^"]*)" was attached(?: as (?:([^"]*)\/)?([^"]*))? to the ([^"]*) above(?: at "([^"]*)")?$/ (see #106, this functionality was moved to CucumberFactory)
    • /^the "([^"]*)" field should have no error$/ (see #134)
    • /^I should get a text response$/ (see #135)
    • /^I wait for the page to load$/ (see #136)
    • debugger (was an alias for console)
  • These email steps have been removed in favor of (an?|no)( HTML| plain-text|) e?mail should have been sent with: (see #132):

    • /^(an|no) e?mail should have been sent((?: |and|with|from "[^"]+"|bcc "[^"]+"|cc "[^"]+"|to "[^"]+"|the subject "[^"]+"|the body "[^"]+"|the attachments "[^"]+")+)$/
    • /^that e?mail should( not)? have the following lines in the body$/
    • /^that e?mail should have the following (?:|content in the )body:$/
  • The and disabled modifier of the step the "..." checkbox should( not)? be checked has been removed. Use the step without the modifier together with the step the "..." checkbox should be disabled to achieve the old behavior.

  • The step /^(the tag )?"([^\"]+)" should( not)? be visible$/ lost its not modifier (Use Then (the tag )?"..." should be hidden or Then I should not see "...")

  • The file lib/spreewald/timecop_steps.rb was removed (was an alias for lib/spreewald/time_steps.rb).

  • The step (an?|no)( HTML| plain-text|) e?mail should have been sent with: does now require that the whole body is matched.

  • All web steps interacting with forms will now find both enabled and disabled fields. We encourage you to assert the "disabled" state in a separate step when needed, Spreewald offers these steps as well.

    The following steps have been adjusted:

    • I should( not)? see a field "..."
    • the "..." field should( not)? contain "..."
    • I should see a form with the following values:
    • the "..." field should have the error "..."
    • the "..." field should( not)? have an error
    • the "..." checkbox should( not)? be checked
    • "..." should be selected for "..."
    • nothing should be selected for "..."
    • "..." should( not)? be an option for "..."
    • the "..." field should be visible
    • the "..." select should( not)? be sorted

Compatible changes

  • Reintroduced support for emails with CRLF line ending

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Owner of this card:

Avatar
Niklas Hasselmeyer
Last edit:
29 days ago
by Michael Leimstädtner
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Niklas Hasselmeyer to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more