ok thanks, I still get a "undefined method `successful?'", successful?
is a method that is used inside of the block, it's partof the
open_id_authentication plugin, any way to include the plugin in the
spec so that it recognizes the method?
thanks in advance
Pat
___
Ben Mabey wrote:
Hello all,
I am upgrading an older app from rails 1.2.3 to rails 2.0.2 and am
upgrading rspec and rspec-on-rails to 1.1.3 in the process.
After upgrading I am getting some weird errors relating to fixtures.
Most of the model example groups have fixtures declared at the top.
Hello all,
I am upgrading an older app from rails 1.2.3 to rails 2.0.2 and am
upgrading rspec and rspec-on-rails to 1.1.3 in the process.
After upgrading I am getting some weird errors relating to fixtures.
Most of the model example groups have fixtures declared at the top.
What is odd is tha
On 29 Apr 2008, at 18:25, 21croissants wrote:
I wrote a Rails plugin which uses simian to look for duplicates
lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_dupl
I wrote a Rails plugin which uses simian to look for duplicates lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
should be_DRY }
If you use Autot
On Tue, Apr 29, 2008 at 9:48 AM, Matt McNeil <[EMAIL PROTECTED]> wrote:
> describe ApplicationController do
> class FooController < ApplicationController
> def index; render :text => "foo"; end
> end
> controller_name :foo
>
> it "should turn off session management for requests made by
Just curious if anything special needs to be done to use the Rails
fixture scenarios plugin(http://code.google.com/p/fixture-scenarios/)
with rspec? Would I just create the "scenarios" inside the spec/fixtures
dir, as opposed to the test/fixtures dir?
Thanks,
Steve
Hi,
(This is my first post after months of appreciative lurking...)
I'm trying to spec the following conditional controller macro:
class ApplicationController < ActionController::Base
# turn off session management for robots
session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slur
On 29 Apr 2008, at 17:00, Patrick Aljord wrote:
I tried to make a stub but with no success, maybe because it's a
block. Any hint about that one please?
What are you trying to stub?
Are you trying to stub authenticate_with_open_id?
def open_id_authentication(openid_url)
authenticate_with_o
I have this function in my controller:
def open_id_authentication(openid_url)
authenticate_with_open_id(openid_url, :required => [:nickname,
:email], :optional => [:fullname]) do |result, identity_url,
registration|
if result.successful?
@user = User.find_or_initialize_by_identi
ok thanks a lot.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Matt Berther ha scritto:
Hi Andrea,
I generally put stub! calls in the before block and then have the mock
expectation in the example block.
--
Matt Berther
http://www.mattberther.com
On Apr 29, 2008, at 5:59 AM, Andrea Fazzi wrote:
Hi all,
consider a class Foo that send, in its constr
Hi Andrea,
I generally put stub! calls in the before block and then have the mock
expectation in the example block.
--
Matt Berther
http://www.mattberther.com
On Apr 29, 2008, at 5:59 AM, Andrea Fazzi wrote:
Hi all,
consider a class Foo that send, in its constructor, some message to
ooh - good spot! thanks :)
On Tue, Apr 29, 2008 at 12:36 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 29, 2008 at 6:51 AM, steven shingler <[EMAIL PROTECTED]> wrote:
> > Thank you for all the replies.
> > I'm unable to use ruby-debug, cos am running on JRuby,
>
> I haven't yet us
Hi all,
consider a class Foo that send, in its constructor, some message to an
object of class Bar:
class Foo
def initialize(bar)
@bar = bar
@bar.some_message
end
...
end
Now, in order to test Foo, I'd like to decouple it from Bar mocking bar
object, so:
describe Foo do
before
On Tue, Apr 29, 2008 at 6:51 AM, steven shingler <[EMAIL PROTECTED]> wrote:
> Thank you for all the replies.
> I'm unable to use ruby-debug, cos am running on JRuby,
I haven't yet used JRuby, but there seems to be a JRuby wrapper for rdebug
http://wiki.jruby.org/wiki/Using_the_JRuby_Debugger
--
Thank you for all the replies.
I'm unable to use ruby-debug, cos am running on JRuby, but a liberal
sprinkling of logger.debug in the controllers helped me sort out what
was going on the test.log. Thanks for that tip.
It made me want for a way of writing something to the log from within
the rspec
On 29-apr-2008, at 12:46, Rick DeNatale wrote:
On Mon, Apr 28, 2008 at 4:16 PM, Bart Zonneveld
<[EMAIL PROTECTED]> wrote:
On 28 apr 2008, at 17:31, steven shingler wrote:
When "the user logs in with username and password" do
post "/sessions/create", :user => { :login => @username, :pa
On Mon, Apr 28, 2008 at 4:16 PM, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> On 28 apr 2008, at 17:31, steven shingler wrote:
>
> >
> > When "the user logs in with username and password" do
> > post "/sessions/create", :user => { :login => @username, :password
> > => @password }
> > end
> >
On Tue, Apr 29, 2008 at 3:06 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Apr 29, 2008, at 12:59 AM, Patrick Aljord wrote:
>
>
> > Hey all,
> >
> > I have an action that looks like this:
> >
> > def create
> > if using_open_id?
> > open_id_authentication(params[:openid_url])
> > els
If you have setup the binary as described in INSTALL.txt you can even
run rspactor from command line.
'cd' in your project directory and run 'rspactor'..
- andreas
On 29 Apr., 05:03, "Zach Dennis" <[EMAIL PROTECTED]> wrote:
> Just put a directory path to a project in the text field, and click Ru
21 matches
Mail list logo