Skip to content
New issue

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

Optionally generate RSpec specs instead of Test::Unit tests #88

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stevehill1981
Copy link

This picks up the configuration from the parent application, so RSpec should be installed and configured before running the generator.

Very much WIP, a lot of work to be done before this is ready.

This picks up the configuration from the parent application, so RSpec should be
installed and configured before running the generator.
@Faq
Copy link

Faq commented Oct 12, 2023

ref. #67


describe "GET #show" do
it "returns HTTP success" do
get session_url(user.sessions.last), headers: default_headers

Choose a reason for hiding this comment

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

Here user.sessions will allways be blank. since we are using let, it will be available only when we access token or default_header which is not the case here.

@jmarsh24
Copy link

I also very interested to have rspec tests. This would be a great improvement.

@stevehill1981
Copy link
Author

I also very interested to have rspec tests. This would be a great improvement.

I haven't had any more time to work on this recently, but I'm more than happy to accept contributions to help me get this over the line. We're working against a moving target right now because new features and new Test::Unit tests get added all the time 😀

@miguelpeniche
Copy link

Hey @stevehill1981 I would love to help on the RSpec tests

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.

None yet

5 participants