You have to go through the browser, using something like selenium
(which can be driven by cucumber)
Pat
On 2/10/09, Tom Hoen wrote:
> Is there way in Cucumber to enable a field or submit button that was
> disabled by default (:disable => true). I have a submit button which is
> enabled using ja
On Tue, Feb 10, 2009 at 10:49 PM, David Chelimsky wrote:
> On Tue, Feb 10, 2009 at 2:02 PM, Nathan Wilmes wrote:
>> Hi folks,
>>
>> I'm currently in the process of upgrading an old Rails project to the Rails
>> 2.2.2 and the trunk of RSpec, and ran into several issues with rspec-rails.
>> I've co
On Tue, Feb 10, 2009 at 3:02 PM, Nathan Wilmes wrote:
> Hi folks,
>
> I'm currently in the process of upgrading an old Rails project to the Rails
> 2.2.2 and the trunk of RSpec, and ran into several issues with rspec-rails.
> I've come up with workarounds for all of them, but I wanted to report th
On Tue, Feb 10, 2009 at 10:09 PM, James Byrne wrote:
> Zach Dennis wrote:
>> On Tue, Feb 10, 2009 at 6:22 PM, James Byrne
>> wrote:
>>> David Chelimsky wrote:
>>>
please use "should be >=" as "should >=" will eventually be deprecated
and removed.
>>>
>>> Removed? You are not
On Tue, Feb 10, 2009 at 9:03 AM, Remi Gagnon wrote:
> Hi guys,
>
> its probably a miss understanding of the framework but I need your
> assistance.
>
> Here is the problem of one of my teammates:
> I have a hard time writing rspecs for a class I developed. The class in
> question reads an xml docu
Pat Maddox wrote:
> On Mon, Feb 9, 2009 at 10:18 PM, Sergio Bayona
> wrote:
>>
>> other is an AR object. But, shouldn't it return the mock property?
>> [])
>>respond_to do |format|
>> got: #> nil, zip: nil, uasap: nil, tax_number: nil, rent_due: nil, units_count:
>> 0, issues_count:
On Tue, Feb 10, 2009 at 2:02 PM, Nathan Wilmes wrote:
> Hi folks,
>
> I'm currently in the process of upgrading an old Rails project to the Rails
> 2.2.2 and the trunk of RSpec, and ran into several issues with rspec-rails.
> I've come up with workarounds for all of them, but I wanted to report th
On Tue, Feb 10, 2009 at 9:09 PM, James Byrne wrote:
> Zach Dennis wrote:
>> On Tue, Feb 10, 2009 at 6:22 PM, James Byrne
>> wrote:
>>> David Chelimsky wrote:
>>>
please use "should be >=" as "should >=" will eventually be deprecated
and removed.
>>>
>>> Removed? You are not s
On Tue, Feb 10, 2009 at 5:24 PM, James Byrne wrote:
> James Byrne wrote:
>
>>
>> Where and How is this constant getting its value changed? The evidence
>> indicates that the array R_RCOV_BASIC_OPTS has the contents of rcov_opta
>> appended each time that the factory method is called but I cannot
Is there way in Cucumber to enable a field or submit button that was
disabled by default (:disable => true). I have a submit button which is
enabled using javascript and would like to test the page using Cucumber.
Thanks for your advice,
Tom
--
Posted via http://www.ruby-forum.com/.
_
Zach Dennis wrote:
> On Tue, Feb 10, 2009 at 6:22 PM, James Byrne
> wrote:
>> David Chelimsky wrote:
>>
>>>
>>> please use "should be >=" as "should >=" will eventually be deprecated
>>> and removed.
>>>
>>
>> Removed? You are not seriously contemplating forcing people to go back
>> and rewrite
This /could/ just a screwy behavior I'm seeing in SQL lite, but I don't
think so; normal scenarios are doing this just fine.
I'm playing with the Background feature in the .1.99 beta, and it looks like
it's being run before every feature -- but it's not cleaning up afterwards.
I have a model with
On Tue, Feb 10, 2009 at 6:22 PM, James Byrne wrote:
> David Chelimsky wrote:
>
>>
>> please use "should be >=" as "should >=" will eventually be deprecated
>> and removed.
>>
>
> Removed? You are not seriously contemplating forcing people to go back
> and rewrite formally working specifications s
On Tue, Feb 10, 2009 at 11:30 PM, David Chelimsky wrote:
> On Tue, Feb 10, 2009 at 2:42 PM, aslak hellesoy
> wrote:
>> dude. have you lost your memory? didn't we have this conversation a week ago?
>>
>> http://www.nabble.com/-Cucumber--and-rake-pass-command-line-params-tt21789574.html
>
> Sorry -
David Chelimsky wrote:
>
> please use "should be >=" as "should >=" will eventually be deprecated
> and removed.
>
Removed? You are not seriously contemplating forcing people to go back
and rewrite formally working specifications simply to tidy up the syntax
are you?
--
Posted via http://ww
On Tue, Feb 10, 2009 at 2:42 PM, aslak hellesoy
wrote:
> dude. have you lost your memory? didn't we have this conversation a week ago?
>
> http://www.nabble.com/-Cucumber--and-rake-pass-command-line-params-tt21789574.html
Sorry - my fault - was going back through some email that was pending
moder
James Byrne wrote:
>
> Where and How is this constant getting its value changed? The evidence
> indicates that the array R_RCOV_BASIC_OPTS has the contents of rcov_opta
> appended each time that the factory method is called but I cannot see
> where or how this is happening.
>
t.rcov_opts
>
> (3) with_tag is completely broken, as it tries to use the outer class as
> the subject of 'with_tag', rather than the have_tag matcher that it lives
> inside.
>
If you're testing markup (view tests or whatever), take a look at my
elementor project[1]. I've found that it makes view testing a lo
On Tue, Feb 10, 2009 at 3:23 PM, wrote:
>
> Done:
>
> http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/692-route-based-_url-or-_path-functions-dont-work-until-getpost-are-called
Great. Thx.
>
>
> Randy
>
>
> - Original Message
>> From: David Chelimsky
>> To: rspec-users
>>
dude. have you lost your memory? didn't we have this conversation a week ago?
http://www.nabble.com/-Cucumber--and-rake-pass-command-line-params-tt21789574.html
aslak
On Fri, Jan 30, 2009 at 1:26 PM, AndreXP wrote:
>
> Can anybody tell me how to pass a variable from the rake command to my steps
On Tue, Feb 10, 2009 at 12:19 PM, David Chelimsky wrote:
> Right. I've done stuff like this before:
>
> [b,d,a,c].sort_with_special_method.should == [a,b,c,d]
>
> Any other patterns out there?
That's how I do it.
Pat
___
rspec-users mailing list
rspec-
Hi folks,
I'm currently in the process of upgrading an old Rails project to the Rails
2.2.2 and the trunk of RSpec, and ran into several issues with rspec-rails.
I've come up with workarounds for all of them, but I wanted to report them
to hopefully get them into better shape for other folks.
(1)
Hey all,
Thanks to Chris Schneider the #rspec, #cucumber, and #webrat freenode
rooms are all being logged now!
The logs can be found here:
http://irclogger.com/
The code is all on github[1] so if you would like to add/change
something just fork it and send a pull request to Chris.
If you se
Done:
http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/692-route-based-_url-or-_path-functions-dont-work-until-getpost-are-called
Randy
- Original Message
> From: David Chelimsky
> To: rspec-users
> Sent: Tuesday, February 10, 2009 12:15:48 PM
> Subject: Re: [rspec-users]
On Sun, Feb 8, 2009 at 5:48 PM, Phlip wrote:
> RSpeckers:
>
> I'm asserting that a list should be sorted by affinity. The following
In BDD we say "expecting" instead of "asserting"
> code is good enough for government work, but is there some more clever
> way to show that each element is equal o
On Mon, Feb 2, 2009 at 12:17 AM, Randy Harmon wrote:
>
> Okay, following up on this item. Would you believe a workaround of (gasp)
> get :index, prior to expecting route-based URLs to work? (slaps forehead).
> or do_action(), provided by the host example group (the more concrete example
> gr
I have this and I want to mock the to_xml but not his block cause this
is what I want to spec. Is there a way to do this?
Sorry for the formatting
output = @detenteur.to_xml( :skip_types => false, :skip_instruct
=> true, :dasherize => false, :only => [:inte_no] ) do |xml_detenteur|
RSpeckers:
I'm asserting that a list should be sorted by affinity. The following
code is good enough for government work, but is there some more clever
way to show that each element is equal or less than the previous
element?
it 'should rank posts by affinity' do
list = @map.sort_frobs_by_a
On Tue, Jan 27, 2009 at 8:04 PM, melvin ram
wrote:
> >From this code http://pastie.org/372777 I'm getting these errors
> http://pastie.org/372702 and it's not making any sense... and it's got
> me a little stuck.
>
> Some help pls?
To start with, the code uses rspec's mock syntax, but the errors
I'm encountering an interesting symptom during example execution. I'm making a
shared example group that dries up belongs-to-me before_filter testing, and it
makes a callback to the example group that says it_should_behave_like that.
The callback tells the shared example where to expect a red
Okay, following up on this item. Would you believe a workaround of (gasp) get
:index, prior to expecting route-based URLs to work? (slaps forehead). or
do_action(), provided by the host example group (the more concrete example
group, I mean - what's the right terminology there?).
I tried re
Sergio,
Responding to your original question. This issue has bugged me a lot
in the past 1 year. And apparently, a lot of other people. As already
explained, the spec should indeed pass. But there should be a failure
somewhere because your code will obviously not work.
Synthesis is a great tool f
...and the crowd roars!
On Thu, Jan 29, 2009 at 7:36 AM, David Chelimsky wrote:
>
> I'm pleased to announce the beta release of the Pragmatic Bookshelf's
> The RSpec Book: Behaviour Driven Development with RSpec, Cucumber and
> Friends!
>
> It's been a long time coming, and there's still a lot of
Hi guys,
its probably a miss understanding of the framework but I need your
assistance.
Here is the problem of one of my teammates:
I have a hard time writing rspecs for a class I developed. The class in
question reads an xml document, instanciates the model classes found in the
xml and saves th
>From this code http://pastie.org/372777 I'm getting these errors
http://pastie.org/372702 and it's not making any sense... and it's got
me a little stuck.
Some help pls?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
Hello,
I recently unpacked the latest (1.1.12) rspec and rspec rails in my
applicaiton.
When I run my specs I get:
config.gem: Unpacked gem rspec-1.1.12 in vendor/gems has no
specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-rails-1.1.12 in vendor/gems h
Hi all, when I spec the to_xml function like this:
@some_model.should_receive(:to_xml), it dskips the code located in the
block, here is the controller code:
...
output = @detenteur.to_xml( :skip_types => false, :skip_instruct =>
true, :dasherize => false, :only => [:inte_no] ) do |xml_detenteur|
On Dec 10 2008, 7:12 pm, "Kai Fu" wrote:
> Could someone tell me how to fix this? Whether I should hack the rails rake
> code?
I've written about my (hopefully) durable solution to your problem,
here:
http://steveluscher.com/archives/enumerating-annotations-in-directories-of-your-choosing-with-r
The TDD/BDD stuff is really quite amazing. In order to construct tests
on a library that I wrote to implement custom magic columns I have
learned some extremely valuable information respecting date and time
recording in Rails. Which leads to my question:
I am presently testing an AR stored time o
Thanks, now it makes sense.
Regards,
Francisco
Zach Dennis wrote:
> On Tue, Feb 10, 2009 at 10:27 AM, Francisco Trindade
> wrote:
>> task. I followed the advice given on this thread
>>
>> elements from the cucumber profile.
>>
>> Am I missing something?
>>
>
> The Cucumber rake task doesn't su
On Tue, Feb 10, 2009 at 10:27 AM, Francisco Trindade
wrote:
> Hi,
>
> Im trying to set up an environment where I am able to run different
> cucumber profiles (webrat/selenium) in the same project.
>
> I did manage to make them work using the cucumber command, so this
> command works:
> cucumber -p
Hi guys,
its probably a miss understanding of the framework but I need your
assistance.
Here is the problem of one of my teammates:
I have a hard time writing rspecs for a class I developed. The class in
question reads an xml document, instanciates the model classes found in the
xml and saves the
Hi,
Im trying to set up an environment where I am able to run different
cucumber profiles (webrat/selenium) in the same project.
I did manage to make them work using the cucumber command, so this
command works:
cucumber -p selenium features/done/items_selenium.feature
The problem I have is when
On Mon, Feb 9, 2009 at 10:18 PM, Sergio Bayona wrote:
> describe "responding to GET new" do
>
>it "should expose a new property as @property" do
> @account = mock_model(Account)
> @account.should_receive(:properties)
> @property = mock_model(Property, :new_record? => false, :er
On Mon, Feb 9, 2009 at 10:18 PM, Sergio Bayona wrote:
> Mark Wilden wrote:
>> On Sun, Feb 8, 2009 at 6:54 PM, Sergio Bayona
>> wrote:
>>
>>> > On Mon, Feb 9, 2009 at 2:35 AM, Sergio Bayona
>>> > wrote:
>>> >>
>>> >>assigns[:property].should equal(mock_property)
>>> >> 1 example, 0 failur
45 matches
Mail list logo