On 25 Oct 2010, at 09:54, Haim Ashkenazi wrote:
> On Oct 25, 2010, at 9:09 AM, Haim Ashkenazi wrote:
>
>> Hi
>>
>> This is my first ruby script, so sorry if it's trivial :)
>>
>> I have a should_receive expectation on :new which should work (and works on
>> a simple test I wrote) but it doesn
On 16 March 2011 12:15, Sid Wood wrote:
> Does anyone know of any open source projects that are using RSpec and
> DataMapper together that I can dissect?
A project I work on, One Click Orgs, was using Merb + DataMapper with
RSpec and Machinist. We've since migrated to Rails with ActiveRecord,
but
On 4 April 2011 02:00, Matt S. wrote:
> For some reason I can't figure out how to make the fields_for tags
> render in the trivial example below; however, it works in the browser.
> What does #build_association do that my stubbed method does not
> replicate? (Or is that even the issue?)
>
> I appr
On Monday, 11 April 2011, Pablo L. de Miranda wrote:
> Hi guys,
> I'm developing a app where each subdomain has a independent data set.
> I did a few tries to rewrite a test for this, but all were unsuccessful.
> Do someone has a example how I can do that? any reference will help.
In our app, we'
On 1 May 2011, at 18:29, Pablo L. de Miranda wrote:
> I'm building a application using subdomains feature like basecamp. To
> create the correct link reference I use a with_subdomain function whch
> take the subdmain name and create a subdomain name like
> subdomain.mydomain.com.
> So to teste tha
On 2 May 2011 13:53, Pablo L. de Miranda wrote:
> Hi guys,
>
> I'm writing a integration test and i'm still have problems with a form field.
> The RSpec continues to show me a message bellow:
>
> Failure/Error: fill_in :password_confirmation, :with =>
> @attr[:password_confirmation]
> Webrat::
On 2 May 2011 00:58, Matt S. wrote:
> 1) Is there a way to make this trivial example spec to pass? (If so,
> how?)
>
> 2) Advice: I would like to write more view specs, especially on views
> for models with more complex relationships. Is it worth it?
>
> (The reason I ask this somewhat rhetorical
On 2 May 2011, at 18:04, "Pablo L. de Miranda" wrote:
> Hi Chris,
>
> Thank your for your explanation, but I have a doubt about this. I'm
> printing the method test bellow:
> it "should create a new account" do
>lambda do
> visit new_subdomain_path
> response.shoul
On 3 May 2011, at 15:05, Matt S. wrote:
> Chris Mear wrote in post #996234:
>> On 2 May 2011 00:58, Matt S. wrote:
>>> accepts_nested_attributes_for.)
>>> before(:each) do
>>> end
>>> <%= f.fields_for :owner do |owner_fields| %>
>>>
&
On 16 May 2011 16:29, S Ahmed wrote:
> class User < ActiveRecord::Base
> attr_accessor :password, :password_confirmation
> attr_accessible :password, :password_confirmation, ...
>
> validates :password, :presence => true, :confirmation => true, :length =>
> { :within => 6..20 }
> end
> fact
On 27 July 2011 18:09, Todd Sedano wrote:
> I have a controller that sends out an email through a mailer.
> Rails 2
> code: CurriculumCommentMailer.deliver_comment_update(@curriculum_comment,
> "created")
> Rails 3 code: CurriculumCommentMailer.comment_update(@curriculum_comment,
> "created").del
On 9 Aug 2011, at 01:02, David Chelimsky wrote:
> On Aug 8, 2011, at 6:00 PM, Matt Wynne wrote:
>
>> I expected to be able to do something like this in a routing spec:
>>
>> { :get => '/legacy/route' }.should redirect_to('/shiny/new/route')
>
> Routes resolve to paths to controller actions, the
On 9 Aug 2011, at 01:37, Matias wrote:
> Im trying to integrate webrat in a rails 2.3.12:
>
> I get this OUTPUT:
> 1)
> NoMethodError in 'Campaign in first step testing request'
> undefined method `visit' for
> #
> /home/matias/livechains/branches/test/livechains/spec/models/
> campaign_spec.rb:1
On 16 Aug 2011, at 17:30, Jason R. wrote:
> Chris M. wrote in post #1014770:
>> CurriculumCommentMailer.should_receive(:comment_update).and_return(double("mailer").stub(:deliver))
>>
>> That's odd -- I would expect that second version to work if the first
>> version is working. What error did you
hat it'll need
an extension to RenderObserver in rspec-rails, but I'm struggling to do the
right thing in my first foray into the RSpec source. Or maybe I shouldn't be
mocking the send_data call at all, but rather then underlying render call?
Many thanks,
Chris Mear
__
On 16 Mar 2009, at 13:28, David Chelimsky wrote:
2009/3/16 Chris Mear :
Hi there,
Just upgraded to Rails 2.3/RSpec 1.2.0, and I've got a controller
that uses
send_data to render a response. In the controller spec, I have:
controller.should_receive(:send_data).with(...)
The send_data m
2009/3/16 David Chelimsky
> 2009/3/16 Chris Mear :
> > Hi there,
> > Just upgraded to Rails 2.3/RSpec 1.2.0, and I've got a controller that
> uses
> > send_data to render a response. In the controller spec, I have:
> > controller.should_receive(:send_data)
17 matches
Mail list logo