Skip to content

Instantly share code, notes, and snippets.

View ngty's full-sized avatar

Ng Tze Yang ngty

  • RankAbove Ltd
  • Singapore
View GitHub Profile
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
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 |
@ngty
ngty / .hoerc
Created December 17, 2008 13:23
---
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$/
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>"
(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
@ngty
ngty / create.feature
Created December 20, 2008 16:22
Create/Edit User Feature
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"
#
# 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
module DmSkinnySpec::Validations
module Common
class ExpectationArgs
attr_reader :attribute, :context
def initialize( attribute, options )
@attribute = attribute