Hi *,
I'm trying to write a plugin to integrate my SSO server into my rails app.
I'm finding the whole process quite difficult, I'm still blocked at configuring
rspec, and the lack of documentation is not helping.
I've put this inside my /vendor/plugins/foobar/spec/spec_helper.rb
ENV["RAILS_ENV"]
Hi *,
I need to test cookie creation with rspec and using Rack::Test, but for some
reason I'm not able to pair the real app that creates a cookie with the rspec
tests.
The spec is like this:
it "should authenticate using cookies" do
user = Factory.create :user
remember_token = Charon.m
On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
> Hi *,
> I need to test cookie creation with rspec and using Rack::Test, but for some
> reason I'm not able to pair the real app that creates a cookie with the rspec
> tests.
> The spec is like this:
>
> it "should authenticate using cookie
Hi!
I have a slow spec. Before anyone shouts, it's an service integration test,
that needs the server available. As I don't have this server near every
time, is there an easy way to skip this spec during rake spec / autospec? I
ended renaming the file, which is IMO, ugly.
Any ideas?
--
Douglas
On Apr 16, 2010, at 3:12 PM, David Chelimsky wrote:
> On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
>
> What versions of rails, rspec, rspec-rails, ruby, etc?
>
> Where does this spec live?
It's sinatra 1.0, not rails.
ruby 1.8.7 (2010-01-10 patchlevel 249)
rspec (1.3.0)
rack-test (0.5.3
On Apr 16, 2010, at 8:49 AM, Nicholas Wieland wrote:
> On Apr 16, 2010, at 3:12 PM, David Chelimsky wrote:
>
>> On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
>>
>> What versions of rails, rspec, rspec-rails, ruby, etc?
>>
>> Where does this spec live?
>
> It's sinatra 1.0, not rails.
I
On Apr 16, 2010, at 8:29 AM, Douglas Campos wrote:
> Hi!
>
> I have a slow spec. Before anyone shouts, it's an service integration test,
> that needs the server available. As I don't have this server near every time,
> is there an easy way to skip this spec during rake spec / autospec? I ended
Try:
post 'whatever', {}, {'rack.session' => {:something=>'value'}}
To put things through the session with rack test/sinatra.
Sent from my iPhone
On 16 Apr 2010, at 15:20, David Chelimsky wrote:
> On Apr 16, 2010, at 8:49 AM, Nicholas Wieland wrote:
>
>> On Apr 16, 2010, at 3:12 PM, David C
You could always define your own generators with your own templates.
I'd probably try that first and see how well it works.
Cheers,
-foca
That's a good idea, foca. Thanks. I'll give it a try.
Peace,
Phillip
___
rspec-users mailing list
rspec-user
On 16 April 2010 15:59, Ben Lovell wrote:
> Try:
>
> post 'whatever', {}, {'rack.session' => {:something=>'value'}}
>
> To put things through the session with rack test/sinatra.
>
> Sent from my iPhone
>
>
Hmm, hold up, that isn't what you asked for :)
You have to remember that the default Rack:
On Apr 16, 2010, at 8:15 AM, Nicholas Wieland wrote:
> Hi *,
> I'm trying to write a plugin to integrate my SSO server into my rails app.
> I'm finding the whole process quite difficult, I'm still blocked at
> configuring rspec, and the lack of documentation is not helping.
> I've put this insid
11 matches
Mail list logo