I’ve just pushed a release that now uses Rspec 3, the expect syntax, better default tests, random test order, and auto screenshots on error.
###https://github.com/AdamBrodzinski/meteor-capybara-rspec
This allows you to acceptance test your Meteor app synchronously using Ruby, Rspec, and Capybara. For me it’s way easier than dealing with JavaScript Webdriver callbacks!
Perhaps someone can make a PR to integrate the runner into velocity
Example init spec
describe "Default Meteor App" do
before(:each) do
visit('/')
end
it "should have correct heading", tag('Smoke') do
expect(page).to have_content("Welcome to Meteor!")
end
it "should respond to a click" do
click_on "Click Me"
click_on "Click Me"
expect(page).to have_content("You've pressed the button 2 times")
end
# this is failing, make me pass!
it "should have Testing Meteor in body" do
expect(page).to have_content("Testing Meteor!")
end
end
Screenshots:
(note, with iTerm, cmd+click the photo url to pop open the failing screenshot!)