I hereby claim:
- I am jedschneider on github.
- I am jedschneider (https://keybase.io/jedschneider) on keybase.
- I have a public key whose fingerprint is C737 E899 0432 C09A 589F 3E7A 4790 6901 0131 543C
To claim this, I am signing this object:
| # valid | |
| {event: {which: 13, target: {value: "test"}}} | |
| #valid | |
| { | |
| event: | |
| { | |
| which: 13, | |
| target: | |
| { |
| var Storage = (function() { | |
| var uniqueId = 0; | |
| function Storage() {} | |
| Storage.prototype.add = function(item) { | |
| var id = this.generateId() | |
| , data = this._toJSON(item); | |
| localStorage[id] = data; | |
| }; |
I hereby claim:
To claim this, I am signing this object:
| C:\ABC_TABLET\apps\ruby\bin\ruby.exe C:\ABC_TABLET\apps\ruby\bin\gem update --system |
| C:\ABC_TABLET\apps\ruby\bin\rake db:abort_if_pending_migrations |
| class Hello | |
| def hi | |
| puts "hello world" | |
| end | |
| end |
| require 'test_helper' | |
| class ReleaseFormLifeCycleTest < ActionController::IntegrationTest | |
| context "a release form lifecycle" do | |
| setup do | |
| @admin = Factory(:administrator) | |
| login | |
| end | |
| should "sign a new release, go to the clients page, revoke, and prompt for a new release" do | |
| @client = create_client |
| class Answer< ActiveRecord::Base | |
| validate :my_custom_validation | |
| def my_custom_validation | |
| errors.add "All whammies, no money" if value.blank? | |
| end | |
| end | |
| class Survey<ActiveRecord::Base | |
| has_many :answers |
| class ScreenerTest < ActiveSupport::TestCase | |
| context "a screener" do | |
| context "yes/no questions" do | |
| setup {@screener = Factory.build(:screener, :answers => [Factory(:answer)])} | |
| should "not allow blank answers for yes/no questions" do | |
| assert_equal false, @screener.valid? | |
| end | |
| should "define the error message for invalidly answered yes/no questions" do | |
| @screener.save | |
| assert_equal "All yes/no answers must be answered yes or no", |
| Hardware: | |
| Hardware Overview: | |
| Model Name: iMac | |
| Model Identifier: iMac6,1 | |
| Processor Name: Intel Core 2 Duo | |
| Processor Speed: 2.16 GHz | |
| Number Of Processors: 1 | |
| Total Number Of Cores: 2 |