Skip to content

Replace Cucumber with RSpec acceptance specs#514

Merged
derekprior merged 1 commit into
masterfrom
dp-acceptance-specs
Jan 9, 2015
Merged

Replace Cucumber with RSpec acceptance specs#514
derekprior merged 1 commit into
masterfrom
dp-acceptance-specs

Conversation

@derekprior

Copy link
Copy Markdown
Contributor

The replacement spec does much the same as the features were doing before, but
in a (hopefully) more maintainable manner. We generate a fresh rails app,
install clearance, and run clearance's generated specs.

I kept the acceptance spec in its own suite because the output of it is a bit
odd and I wanted it separate from our usual tests. It will output the results
of the generated specs followed by the result of the single acceptance spec.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@derekprior derekprior force-pushed the dp-acceptance-specs branch from f7a135c to 4eee077 Compare January 9, 2015 19:49

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If example raise an exception, there's a chance that line 11 won't get run, right? How about using the block version of chdir?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it matters much though, but I assume that your CWD will leak to the next run.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about or had forgotten the block version. Thanks.

The replacement spec does much the same as the features were doing
before, but in a (hopefully) more maintainable manner. We generate a
fresh rails app, install clearance, and run clearance's generated specs.

I kept the acceptance spec in its own suite because the output of it is
a bit odd and I wanted it separate from our usual tests. It will output
the results of the generated specs followed by the result of the single
acceptance spec.
@derekprior derekprior force-pushed the dp-acceptance-specs branch from 4eee077 to ed6f8f4 Compare January 9, 2015 20:28
@derekprior derekprior merged commit ed6f8f4 into master Jan 9, 2015
@derekprior derekprior deleted the dp-acceptance-specs branch January 9, 2015 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants