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

Anonymous #1

Open
cj opened this issue Mar 9, 2012 · 1 comment
Open

Anonymous #1

cj opened this issue Mar 9, 2012 · 1 comment

Comments

@cj
Copy link

cj commented Mar 9, 2012

Hi,

So I followed http://blog.rawonrails.com/2012/01/better-way-of-testing-rails-application.html but when I run the test it gives me this:

UsersController
UsersController::Display users belonging to a certain company
     test_0001_anonymous                                                  PASS
     test_0002_anonymous                                                  PASS

Is there a reason it just says anonymous ? I'm doing:

    it { must respond_with :success }
    it { must respond_with_content_type :json  }
@rawongithub
Copy link
Owner

I am afraid the feature you are looking for is not implemented yet. And I am not sure if this should be related to this specific gem either minitest-matchers or rather shoulda-matchers?
I din't make any approach to this problem, so I have no idea. Any proposition?

What you got is the feature of minitest itself. If no desc given, it falls to default which is "anonymous".
Look at the minitest docs for some more details http://docs.seattlerb.org/minitest/MiniTest/Spec.html

Hint: you probably know about that, but for now if you care about the output much, you can give description explicitly, eg.

it "must respond with success" do
  must respond_with(:success)
end

Yes - this is far from perfection;) But currently I have no time to look at this problem. Anyone?

blowmage referenced this issue in blowmage/minitest-rails-shoulda Oct 22, 2012
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

No branches or pull requests

2 participants