> Huh? Pretty please what? Matt and I have both responded. In my case I
> asked you about the versions you have. You didn't quote any of the
> previous posts in this thread, so I have no idea what you're asking
> for at this point. Did you receive our responses?
So sorry, I must be missing somethi
Pretty please? :)
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hello list,
this should be an easy one, but I seem to be stuck.
What is the proper way to mimic a POST request for a named, non-RESTful
route?
here's the route and the rest of the setup:
map.accept_invitation '/accept_invitation/:id', :controller =>
"invitations", :action => "accept", :method =>
Pelle Braendgaard wrote:
> I have made a fix to fixture scenarios which fixes that particular
> problem. I've made it available here:
>
> http://github.com/pelle/fixture-scenarios/tree/master
It works!
Thank you very, very much, Pelle.
Giuseppe
--
Posted via http://www.ruby-forum.com/.
> Is the git tree any different than the svn one?
> http://github.com/mojombo/fixture-scenarios/tree/master
> Scott
Hi Scott, I checked, and the two trees are actually identical.
It seems that while fixture_scenarios has not changed since around April
2007, changes in rspec since v.1.1.4 have cr
Hello there,
is anyone still using fixture_scenarios with RSpec these days? They
don't seem to coexist peacefully anymore.
I just created a new rails (2.2.2) app, generated an rspec_scaffold
(with v. 1.1.12), and verified that all specs pass.
But if I then install the fixture_scenarios plugin:
> catch any dependencies your tests may have on each other
> in order to reveal brittle tests.
Following Ben's hint, I took out examples from the controller spec until
I isolated the culprit.
Briefly, I am switching from RSpec's built in mocking framework to Mocha
and fixture_scenarios when nec
Hi Matt,
> I had a similar situation, only reversed. All ran with autotest, but
> failed in Textmate. I found the problem was in how I was including
> some helper modules and correcting that solved the problem.
right, I've heard about that before, and I thought that my problem may
be similar in
Hi all,
I hope I can get a quick pointer about the following problem:
I have a controller spec with 38 examples, all green if run from
*within* TextMate.
>From the shell, however (through either rake or autotest) I get a
handful of pink errors.
For example, I get a few TypeErrors ("can't convert
Hi Jarkko, I see your point.
However, checking the user's roles in order to authorize access to the
action is done behind the scenes by the acl_system2 plugin, which would
not know what to do with has_role?, unless I am missing something.
Thanks!
Giuseppe
> You might want to take that one step
Hi Glenn, thanks for the response.
> I would do something like this:
>
> user = mock_model(User, :operator => true)
> controller.stub!(:current_user).and_return(user)
OK, so, :operator is not a User attribute. Rather, a user is an
operator, so to speak, if a habtm relationship exists between the
Dear all,
I am wondering how to properly mock/stub out the preliminary steps to
actions protected by restful_authentication and acl_system2 (role-based
authorization to execute actions). Here's my setup:
class User < ActiveRecord::Base
has_and_belongs_to_many :roles
has_many :tasks
[snip]
e
12 matches
Mail list logo