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
| body[id=companies_index] { | |
| .main-loading { | |
| border-radius: 2px; | |
| color: $main-blue; | |
| height: 260px; | |
| margin-top: 40px; | |
| padding-top: 200px; | |
| } | |
| .main-search { |
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
| IDByMe.Initializer = | |
| exec: (pageName) -> | |
| if pageName && IDByMe[pageName] | |
| IDByMe[pageName]['init']() | |
| currentPage: -> | |
| return '' unless $('body').attr('id') | |
| bodyId = $('body').attr('id').split('-') | |
| action = IDByMe.Util.capitalize(bodyId[1]) |
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 'rails_helper' | |
| describe Charge, 'validations', type: :model do | |
| it { is_expected.to validate_presence_of(:amount) } | |
| it { is_expected.to validate_presence_of(:customer) } | |
| end | |
| describe Charge, 'delegations', type: :model do | |
| it { is_expected.to delegate_method(:name).to(:customer).with_prefix(true) } | |
| 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
| feature 'Color Scheme' do | |
| given(:development) { create(:development) } | |
| given(:user) { create(:user, :admin) } | |
| given!(:color_scheme) { create(:color_scheme, development: development, name: FFaker::Name.name, price: 13660)} | |
| given(:other_development){ create(:development) } | |
| given!(:image) { create(:image, development: development) } | |
| before do | |
| login_as(user) | |
| 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
| { | |
| data: [ | |
| { | |
| name: 'Rotati Consulting', | |
| lat: 10.222111, | |
| lng: 144.122322, | |
| stories: [ | |
| { | |
| name: 'Story of Rotati', | |
| url: 'markers/2/stories/1' |
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
| @UserList = React.createClass | |
| getInitialState: -> | |
| users: @props.users | |
| newPath: @props.new_path | |
| getDefaultProps: -> | |
| users: [] | |
| newPath: '' |
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 UrlList extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| urls: [] | |
| } | |
| this.handleUrlCreated = this.handleUrlCreated.bind(this); | |
| } |
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 'rails_helper' | |
| RSpec.describe Url, 'Associations', type: :model do | |
| it { is_expected.to belong_to(:user) } | |
| it { is_expected.to have_many(:logs) } | |
| end | |
| RSpec.describe Url, 'Validations', type: :model do | |
| it { is_expected.to validate_presence_of(:original_name) } | |
| it { is_expected.to validate_uniqueness_of(:original_name) } |
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 DTO::Domain | |
| attr_reader :type, :name, :price, :status | |
| def initialize(data) | |
| @type = data['body']['type'] | |
| @name = data['body']['name'] | |
| @price = data['body']['price'] | |
| @status = data['body']['status'] | |
| 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
| { | |
| "response": { | |
| "status": { | |
| "code": 200, | |
| "message": "OK" | |
| }, | |
| "body": { | |
| "type": "domain", | |
| "name": "some-domain.com", | |
| "price": "11.00", |
OlderNewer