Click here to download old versions of Chrome for Linux, Mac and Windows.
The download_url field of the desired section houses the URL to the download.
Alternatively, for not too old versions, you can get it directly here.
| # Monkey patch for ActiveRecord::Base to return serialized JSON in the format | |
| # of an ActiveModel::Serializer. | |
| module SerializedJson | |
| extend ActiveSupport::Concern | |
| def to_serial(serializer=nil, opts={}) | |
| if self.respond_to?(:map) | |
| serializer ||= (self.base_class.name + "Serializer").constantize | |
| serialized_collection = self.map do |resource| |
| Spree::LineItem.joins(:variant).merge(Spree::Variant.where(sku: "ROR-00011")).joins(:order).merge(Spree::Order.where(state: 'complete')).count |
| # Simple wrapper to allow hashes to be accessed via dot notation recursively. | |
| # Recurses over hashes and arrays. Works with string keys | |
| # and symbol keys - other types of keys are not supported and | |
| # all keys must be of the same type. Write access is only supported via | |
| # []= Hash syntax. Supports accessing hash values with square bracket Hash syntax ([...]) | |
| # and access is indifferent to if the key is given as a string or a symbol. | |
| # Supports JSON generation. | |
| # | |
| # Dependencies: Ruby. | |
| # |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # This skeleton also assumes you're using the following gems: | |
| # | |
| # rspec-rails: https://github.com/rspec/rspec-rails |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |