I don't want to sell anything, buy anything, or process anything as a career. I don't want to sell anything bought or processed, or buy anything sold or processed, or process anything sold, bought, or processed, or repair anything sold, bought, or processed. You know, as a career, I don't want to do that.
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
| on '5/1/2007' do | |
| as member.find('administrator') | |
| @local_developer_group = insert :member_label do | |
| name "Local Developers" # method missing | |
| end | |
| @local_developer_group = insert :member_label do | |
| name "Java Developers" |
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
| Loader.insert do | |
| on '1/1/2001' | |
| asset :member | |
| attributes do | |
| username 'skip' | |
| password 'password0' | |
| 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
| pry -r ste_def_debugger.rb -I ./features/support/lib/ |
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
| require 'capybara' | |
| require 'capybara/dsl' | |
| require 'selenium/webdriver' | |
| require_relative './features/support/lib/api' | |
| Capybara.app_host = 'http://localhost/' | |
| @api = API.new('http://localhost/VersionOne.Web') | |
| Capybara.app = class HarnessRackApp; 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
| group :assets do | |
| gem 'sass-rails', '~> 3.1.0' | |
| gem 'coffee-rails', '~> 3.1.0' | |
| gem 'uglifier' | |
| gem 'compass', '~> 0.12.alpha' | |
| # include other compass plugins here. E.g.: | |
| gem 'compass-susy-plugin', :require => 'susy' | |
| 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
| @epic = find_or_create :epic do |f| | |
| f.lookup :name, 'test_epic_4' | |
| f.attributes do |a| | |
| a.name 'test_epic_4' | |
| end | |
| f.relations do |r| | |
| r.scope @scope |
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
| class Wrapper | |
| def self.some_windows_dependent_stuff | |
| require "win32/registry" | |
| # use windows stuff | |
| end | |
| end | |
| class Subject | |
| def where_i_need_it | |
| Wrapper.some_windows_dependent_stuff |
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
| harness = require('../test_harness') | |
| expect = harness.expect | |
| HtmlEncoder = harness.load('HtmlEncoder') | |
| describe "Escaping html w/ coffee", -> | |
| it "escapes simple P tag", (inform_mocha_we_are_done) -> | |
| harness.testInBrowser inform_mocha_we_are_done, (window) -> | |
| text = '<p>hello</p>' | |
| encoded = HtmlEncoder.encode(window, text) |
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
| sinon = require('sinon') | |
| should = require('chai').should() | |
| class Bar | |
| print: (message) -> | |
| message | |
| class Foo | |
| doSomething: (bar)-> | |
| console.log(bar.print('hello')) |