You cannot post messages because only members can post, and you are not currently a member.
Description:
Anything related to Steak, the minimalist acceptance BDD solution
|
|
|
Testing Error Pages
|
| |
I want to test the custom error pages in my Rails 3.1 app with Steak. To do that, I make the following changes. ...config.consider_all_request s_local = false ...ActionDispatch::Request.cla ss_eval do def local? # we need to consider the requests to be non-local to test error pages false end... more »
|
|
Login_With
|
| |
Im using rails 2.3.12 with Devise.
I create a helper:
def login_with(user)
visit "/users/sign_in"
fill_in "user_login", :with => user.email
fill_in "user_password", :with => user.password
click_on "Acceder"
end
And an acceptance test with:
let :user do
Factory.create :user... more »
|
|
hooks on steak
|
| |
I want to use hooks on steak to remove access repetition of code. Is
there any method of adding steaks like cucumber?
|
|
Problems running steak with Spork -- helpers not loaded correctly
|
| |
Hey,
Steak is working great for me without Spork but whenever I run it
using Spork I get "undefined local variable" errors whenever my code
hits a helper method. Has anyone had any similar issues? My spork (if
that's relevant).
require 'rubygems'
require 'spork'
ENV["RAILS_ENV"] ||= 'test'... more »
|
|
Way to access app/helpers methods within steak/rspec?
|
| |
I have a failing test because my number formatting in the spec is different than on the view. The current spec line: has_text?("$...@account.bill.g rand_total}").should == true However in my view the formatting is handled by a helper, and for me to get my test to pass I would need to do: has_text?("$#{format_qb_amount (@account.bill.grand_total)}") .should == true... more »
|
|
Steak with Session Example
|
| |
Maybe this is more a Capybara question, but I am wondering if someone could provide me with an example of using Steak with sessions. I'm trying achieve something like [link] which tests a user sign in form into a protected area. Thanks in advance.
|
|
Multiple before(:each)?
|
| |
I am wondering if multiple contexts and before(:each) can be nested, and the first before(:each) still runs on the nested scenario: context "one" do before(:each) do @something = 1 end scenario "should x" do ... end context "two" do before(:each) do @something_else = 3... more »
|
|
Logging in
|
| |
Hi - I just can't seem to get my acceptance tests to log me in.
I have this in the helper:
config.include Warden::Test::Helpers, :type => :acceptance
And this before my tests ...
background :each do
@admin = Factory.create(:admin)
login_as @admin
end
There are no errors, however when I visit a URL - it sends me back to... more »
|
|
Run specs without acceptance
|
| |
Today we have rake spec:acceptance or rake spec. Most of the times I
want to run all my model/helper/controller specs without the
acceptance because acceptance is slower than the others. But I can't
found a good way to this without develop my own. Maybe it could be
shiped with Steak.
What do you guys think about a rake task to run the specs without the... more »
|
|
How to configure steak with akepahlos
|
| |
Some time ago I have tried to use the thoughtbot version of akepahlos
based on this article [link],
but could not make it work, does anyone have an app sample to show me
how to test. If not is there any app sample with Steak and selenium.... more »
|
|
|