Displaying 10 results from an estimated 10 matches for "hwcuc".
Did you mean:
hwcap
2011 Sep 13
12
Assertions for asynchronous behaviour
...w capybara has wait_until { } but that''s fairly rudimentary - the failure message isn''t very helpful. Is there anything else already out there?
[1] http://www.growing-object-oriented-software.com/
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Helles?y)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110913/cd84b813/attachment.html>
2012 Aug 31
5
Question1 Cucumber Rails
can we write multiple background in one feature file....?
can we write multiple feature in one feature file.....?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2011 Dec 05
5
Spec'ing a block
Hi folks
How would you spec something like this:
as_user username do
FileUtils.chmod_R 0755, "#{directory}/*"
end
Where as_user fires off a new process (and set uid to username).
It seems that this won''t catch FileUtils.chmod_R:
FileUtils.should_receive(:chmod_R).with(0755, "#{@domain.directory}/*")
I guess that is because it is passed in the block
2012 Feb 05
4
testing framework for test automation
Hello,
Anyone working in QA Test Automation with RSpec wouldn?t mind posting
their testing framework or know where I can go to get more info on
testing frameworks either with RSpec or Cucumber? I greatly
appreciate. Thank you.
2012 Feb 21
8
should_receive_chain
Do you often find yourself doing this:
active = double(''active'')
active.should_receive(:first)
users = double(''users'', active: active)
account.should_receive(:users).and_return(users)
for this:
account.users.active.first
?
Of course, we could use stub_chain, but that doesn''t let us know
*where* the chain broke.
Would you like to do this?
2011 Oct 18
8
rspec 1.3.2, Rails 2.3.14 - plugins not loading
Hi there
I have a weird situation. I have inherited a project in Rails 1.2.3
that has been upgraded to Rails 2.3.14 (and is running). I have
installed Cucumber and Rspec to start to write features/tests for the
new code that needs to be written. In my Gemfile, these Gems are
loaded:
group :test do
gem ''rspec-rails'', ''~> 1.3.4'', :require =>
2011 Jul 29
2
How can I make before/after all a method?
I would like to turn this:
describe TestClass do
before :all do
# set some config
end
after :all do
# restore some config
end
# do a bunch of tests to this
end
into
describe TestClass do
with_config_value(X)
# do a bunch of tests to this
end
Basically, I want to include before :all and after :all clauses into a test.
However, I do not want this to apply toa ll tests.
Thanks in advance.
2012 Jun 14
3
Selenium+Autotest: how to run browser in background?
Hey guys
After hours of hard work I finally managed to set up my development
environment to run cucumber scenarios using autotest and selenium.
What''s a bit bugging is the fact that Firefox always jumps to the
foreground when Autotest does its job. How can I keep Firefox in the
background so that I can continue with my work without being
interrupted?
Thanks!
--
Posted via
2011 Sep 07
4
rspec testing inheritance
Hello,
Is there any way to test model inheritance in spec?
something like..
it { ChildModel.should < ParentModel }
thanks.
2012 Feb 13
11
stale records with integration testing?
Hi,
I was writing an integration test for my user signup form (with
capybara), and found that my test was failing due to a validation error:
"email is already taken". I''m a bit confused because I thought when I
run "rspec spec/some_spec.rb", the test database would be wiped clear?
Is that not the case?
Patrick J. Collins
http://collinatorstudios.com