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 'benchmark/ips' | |
| class Foo | |
| attr_reader :test | |
| def initialize(test) | |
| @test = test | |
| end | |
| def read |
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 'java' | |
| @robot = java.awt.Robot.new | |
| def click(x, y) | |
| @robot.mouseMove(x, y) | |
| @robot.mousePress(java.awt.event.InputEvent::BUTTON1_MASK) | |
| sleep 0.05 | |
| @robot.mouseRelease(java.awt.event.InputEvent::BUTTON1_MASK) | |
| sleep 0.05 | |
| 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
| lt: | |
| errors: | |
| messages: | |
| expired: "pasibaigė galiojimo laikas, prašome nusiųsti užklausą iš naujo" | |
| not_found: "nerastas" | |
| already_confirmed: "jau patvirtintas, prašome prisijungti" | |
| not_locked: "nebuvo užrakintas" | |
| not_saved: | |
| one: "Bandant išsaugoti %{resource} įvyko klaida:" | |
| other: "Įvyko %{count} klaidų bandant išsaugoti %{resource}:" |
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 'spec' | |
| require 'blueprints' | |
| require 'activerecord' | |
| require File.dirname(__FILE__) + '/../lib/animal' | |
| ActiveRecord::Base.establish_connection(:database => 'fixtures_test', :adapter => 'mysql', :username => 'root') | |
| #ActiveRecord::Base.connection.create_table :animals do |t| | |
| # t.string :species, :size, :color | |
| #end | |
| Spec::Runner.configure do |config| |