Sha256: baab19de01a996396e9bcb4cbe85be6bfba5c6255e73caf93a30ba2affc908dd
Contents?: true
Size: 377 Bytes
Versions: 25
Compression:
Stored size: 377 Bytes
Contents
Given /^I have sites named (.+)$/ do |names| names.split(', ').each do |name| p = Site.make(:name => "#{name}") end end Given /^I have no sites$/ do Site.delete_all end Then /^I should have ([0-9]+) site$/ do |count| Site.count.should == count.to_i end When /^I visit "(.+)"$/ do |site| site = Site.where(:name => site).first visit admin_site_url(site) end
Version data entries
25 entries across 25 versions & 2 rubygems