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
| { | |
| "message": "order:new", | |
| "payload": { | |
| "order": { | |
| "channel": "Amazon", | |
| "email": "[email protected]", | |
| "currency": "USD", | |
| "line_items": [ | |
| { | |
| "price": 19.99, |
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
| var resource; | |
| resource = railsResourceFactory({ | |
| url: '/api/registrations', | |
| name: 'registration' | |
| availableKeys: function(){ | |
| return this.$get(this.$url() + '/available_keys'); | |
| } | |
| }); |
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
| <%= radio_button_tag 'option', 'blue', true %> Blue | |
| <%= radio_button_tag 'option', 'green' %> Green | |
| <%= radio_button_tag 'option', 'yellow' %> Yellow | |
| <%= radio_button_tag 'option', 'brown' %> Brown | |
| <%= radio_button_tag 'option', 'black' %> Black |
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
| module Spree | |
| class Calculator::Bogo < Calculator | |
| preference :number_to_buy, :integer, :default => 1 | |
| preference :number_to_get, :integer, :default => 1 | |
| def self.description | |
| "Buy One Get One" | |
| end | |
| def compute(order) |
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
| describe "States" do | |
| before(:each) do | |
| visit admin_path | |
| click_link "Configuration" | |
| end | |
| context "admin visiting states listing" do | |
| it "should correctly display the states" do | |
| Factory(:state, :name => "Maryland", :abbr => "MD", :country => Factory(:country)) |