I hereby claim:
- I am dazzla on github.
- I am droidqa (https://keybase.io/droidqa) on keybase.
- I have a public key ASCngGjD8euRdzmm8Q9cgizVd7in_WxoSZHps2xzyM6alQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Ignore Users on Cook'd and Bomb'd | |
// @namespace http://www.stupidpupil.co.uk | |
// @include https://www.cookdandbombd.co.uk/forums/* | |
// @include http://www.cookdandbombd.co.uk/forums/* | |
// @grant none | |
// @version 1.0 | |
// ==/UserScript== | |
(function () { |
/Users/Dazzla/.rbenv/versions/2.3.1/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/Dazzla/src/testbot/bin/testbot --server | |
/Users/Dazzla/src/testbot/lib/server/server.rb:17:in `<module:Server>': undefined method `set' for Testbot::Server:Module (NoMethodError) | |
Did you mean? send | |
from /Users/Dazzla/src/testbot/lib/server/server.rb:12:in `<top (required)>' | |
from /Users/Dazzla/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' | |
from /Users/Dazzla/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' | |
from /Users/Dazzla/src/testbot/lib/shared/testbot.rb:96:in `start_server' | |
from /Users/Dazzla/src/testbot/lib/shared/testbot.rb:35:in `run' | |
from /Users/Dazzla/src/testbot/bin/testbot:59:in `<top (required)>' | |
from -e:1:in `load' |
Before: | |
Scenario: Adding an Event to a Project when User with No Project is Logged in | |
When I log in as a Company customer | |
And I clear all the existing project | |
And I click Save to Project Image for the Event | |
And I create a New Project 'TestProject' on the My Projects page | |
And I am viewing the Design Centre Landing Page | |
And I click "My Projects" from Side nav | |
And I open the project 'TestProject' from Project List | |
Then I can see event listing on 'TestProject' Detail page |
class YourLoyaltyMember | |
def self.register_member(member) | |
url = "#{EnvConfig['SERVICES_BASE_URL']}/registration" | |
response = ApiRequests.post_json_to_url(url, YourLoyalty::RegisterMember.new(member).json) | |
handle response | |
end | |
def self.update_a_member(member) | |
@url = "#{EnvConfig['SERVICES_BASE_URL']}/entityinstance/member/#{member.id}" |
require_relative 'customer_data_classes' | |
class Customer | |
attr_accessor :details | |
def initialize(user = GhostCustomer) | |
@details = user.data | |
end | |
#customer methods follow... | |
def self.put_json_to_url input_url, json_body | |
safely_request{RestClient.put(input_url, json_body, :content_type => 'application/json')} | |
end | |
def safely_request(&block) | |
begin | |
@response = parse_response(block.call) | |
rescue Exception => e |
def self.post_json_to_url input_url, json_body | |
begin | |
@response = RestClient.post(input_url, json_body, :content_type => 'application/json') | |
rescue Exception => e | |
puts e.body | |
end | |
parse_response_body(@response) | |
end | |
end |
module ArrayHelper | |
def self.unwrap_from_array(operand) | |
operand = operand[0] if operand.respond_to?(:map!) | |
operand | |
end | |
end |