This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Invoke features:tag:doing (first_time) | |
** Invoke db:acceptance:prepare (first_time) | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute db:abort_if_pending_migrations | |
** Execute db:acceptance:prepare | |
** Invoke db:acceptance:load (first_time) | |
** Invoke db:acceptance:purge (first_time) | |
** Invoke environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Create Public Holidays | |
In order for the system to function as a reasonable HRM | |
It should support public holidays w.r.t countries | |
As human resource personnel, I should be able to create public holidays in the system | |
Scenario Outline: Access "New Public Holiday" Page | |
Given the following countries exist in the system (...) | |
| name | | |
| Singapore | | |
| Malaysia | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Matches an annual leave step like the following in a cucumber feature file: | |
# " | |
# Then I should see annual leave "2009-02-20 (afternoon)" with "Status" as "Approved" | |
# " | |
# | |
Then /^I should see annual leave "([^"]+)" with "([^"]+)" as "([^"]+)"$/ do | date_time, label, value | | |
Then 'I should see annual_leave "%s" with "%s" as "%s" showing "%s" as "%s"' % | |
[ 'Date/Time', date_time, label, value ] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DmSkinnySpec::Validations | |
module Common | |
class ExpectationArgs | |
attr_reader :attribute, :context | |
def initialize( attribute, options ) | |
@attribute = attribute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Note that i'm using cucumber and have mixed | |
# Selenium::Client::Base into cucumber's world. | |
# | |
When /^I (uncheck|check) "(w+)"$/ do | label, check | | |
checkbox = labelled_checkbox[label] | |
if ( checkbox['checked'] and check=~/^u/ ) or ( checkbox['checked'].nil? and check=~/^c/ ) | |
click cbox.locator | |
wait_for_condition 'selenium.browserbot.getCurrentWindow().ActionStatus.completed()' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Create Users | |
In order for system to support management of users | |
I should be able to create user in the system | |
Scenario: Successfully Created User | |
Given I go to /users | |
And I follow "New User" | |
Then I should see "Create User" page | |
Given I focus on section "Basic Info" | |
And I fill in "Name*" with "Carol" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in /home/ngtzeyang/dev/mine/edge) | |
Loading init file from /home/ngtzeyang/dev/mine/edge/config/init.rb | |
Loading /home/ngtzeyang/dev/mine/edge/config/environments/development.rb | |
Feature: Login # features/login.feature | |
To ensure the safety of the application | |
A regular user of the system | |
Must authenticate before using the app | |
Scenario Outline: Failed Login # features/login.feature:6 | |
Given I am not authenticated # features/login.feature:7 | |
When I go to /login # features/login.feature:8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Login | |
To ensure the safety of the application | |
A regular user of the system | |
Must authenticate before using the app | |
Scenario Outline: Failed Login | |
Given I am not authenticated | |
When I go to /login | |
And I fill in "login" with "<mail>" | |
And I fill in "password" with "<password>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
publish_on_announce: false | |
blogs: | |
- user: user | |
url: url | |
extra_headers: | |
mt_convert_breaks: markdown | |
blog_id: blog_id | |
password: password | |
exclude: !ruby/regexp/tmp$|CVS|\.svn|_darcs|\.git|log$|local/.*\.rb$|Makefile|.*\.o$|.*\.bundle$|.*\.so$|.*\.dll$/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Upload Data # features/basic/upload.feature | |
In order to make mspots.org easy to use | |
I should be able to upload data file to generate mspots | |
Scenario Outline: Uploading Data File # features/basic/upload.feature:9 | |
Given I am using <browser> to go to / # features/basic/upload.feature:10 | |
When I press on "Select a Spreadsheet to Upload" # features/basic/upload.feature:11 | |
And I attach "<file>" # features/basic/upload.feature:12 | |
Then I should see "Processing Upload" status indicator # features/basic/upload.feature:13 | |
|browser|file | |