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 Morpheus | |
| module Adapters | |
| module Solr | |
| class Relation | |
| include ActiveModel::Model | |
| attr_accessor :connection, :relation_class, :where | |
| delegate :present?, :blank?, :empty?, to: :to_a | |
| delegate :each, :map, :collect, :select, :find, :last, :first, to: :to_a | |
| delegate :total, :facet_fields, to: :response |
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 'active_support/dependencies' | |
| %w(app/business app/enumerations app/marketplace).each do |path| | |
| ActiveSupport::Dependencies.autoload_paths.push(path) unless ActiveSupport::Dependencies.autoload_paths.include?(path) | |
| 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
| var Bar, Foo, | |
| __hasProp = {}.hasOwnProperty, | |
| __extends = function(child, parent) { | |
| for (var key in parent) { | |
| if (__hasProp.call(parent, key)) child[key] = parent[key]; | |
| } | |
| function ctor() { | |
| this.constructor = child; | |
| } | |
| ctor.prototype = parent.prototype; |
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 Rubyconf | |
| event year: 2014, role: :rubyist | |
| 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
| source 'http://rubygems.org' | |
| gem 'rspec' | |
| gem 'capybara' | |
| gem 'selenium-webdriver' | |
| gem 'site_prism' |
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
| user system total real | |
| gruff 0.880000 0.040000 0.920000 (0.849686) | |
| scruffy 2.470000 1.910000 4.380000 (3.361562) |
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
| beschreibe Menschen do | |
| vorher(:von_jeder) do | |
| @menschen = Meschen.new(:name =>"Guilherme",:familienname => "Silveira",:alter => 21) | |
| @meggie = Meschen.new(:name =>"Meggie",:familienname => "Simpson",:alter => 6) | |
| @homer = Meschen.new(:name =>"Homer",:familienname => "Simpson",:alter => 35, | |
| :kinder => [@meggie]) | |
| end | |
| es "muss den vollständigen Namen zurück" do |
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
| # Just a simple example | |
| describe Person do | |
| before(:each) do | |
| @person = Person.new(:name => "Guilherme", :last_name => "Silveira", :age => 21, :children => []) | |
| @meggie = Person.new(:name => "Meggie", :last_name => "Simpson", :age => 6) | |
| @homer = Person.new(:name =>"Homer",:last_name => "Simpson",:age => 35, | |
| :children => [@meggie]) | |
| 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
| ENV["RAILS_ENV"] ||= 'test' | |
| require 'rubygems' | |
| require 'spork' | |
| require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment')) | |
| require File.expand_path(File.dirname(__FILE__) + "/blueprints") | |
| require 'spec/autorun' | |
| require 'spec/rails' | |
| require 'authlogic/test_case' |
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
| # Rake Syntax for RDoc | |
| # | |
| Rake::RDocTask.new do |rdoc| | |
| rdoc.rdoc_dir = "doc" | |
| rdoc.title = "My Gem" | |
| rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' | |
| rdoc.options << '--charset' << 'utf-8' | |
| rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo' | |
| rdoc.rdoc_files.include("README", "CHANGELOG") | |
| rdoc.rdoc_files.include("lib/**/*.rb") |
OlderNewer