Skip to content

Instantly share code, notes, and snippets.

@vartikasingh
vartikasingh / ReadMe.md
Created September 23, 2015 05:08
Prework

TipCalculator

This is a Tip Calculator application for iOS submitted as the pre-assignment requirement for CodePath.

Time spent: 2.5 hours

Completed:

  • [] Required: User can enter a bill amount, choose a tip percentage, and see the tip and total values.
  • [] Required: Settings page to change the default tip percentage.
➜ quickfix-test-app git:(master) ✗ bundle exec cucumber features/manage_admin.feature
Using the default profile...
@focus1
Feature: Manage Admin
In order to create a admin
As an Owner of this project
I want to create admin account and manage users
Scenario: Create Valid Admin # features/manage_admin.feature:8
Given I have no admin # features/step_definitions/admin_steps.rb:1
➜ quickfix-test-app git:(master) ✗ bundle exec cucumber features/manage_admin.feature
Using the default profile...
@focus1
Feature: Manage Admin
In order to create a admin
As an Owner of this project
I want to create admin account and manage users
Scenario: Create Valid Admin # features/manage_admin.feature:8
Given I have no admin # features/step_definitions/admin_steps.rb:1
➜ quickfix-test-app git:(master) ✗ bundle exec cucumber features/manage_admin.feature
Using the default profile...
@focus1
Feature: Manage Admin
In order to create a admin
As an Owner of this project
I want to create admin account and manage users
Scenario: Create Valid Admin # features/manage_admin.feature:8
Given I have no admin # features/manage_admin.feature:9
➜ quickfix-test-app git:(master) ✗ rails generate cucumber:install
identical config/cucumber.yml
identical script/cucumber
chmod script/cucumber
exist features/step_definitions
exist features/support
identical features/support/env.rb
exist lib/tasks
identical lib/tasks/cucumber.rake
Given /^I have no admin$/ do
Adminrequest.delete_all
end
When /^I click on "([^"]*)"$/ do |arg1|
visit('/session/new')
click_link 'Create channels'
end
Then /^I am routed to a new page admin_request$/ do