source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/glue/registry_and_more_spec.rb | Ruby | mit | 5,212 | main | 8,683 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/glue/registry_and_more'
require 'cucumber/cucumber_expressions/parameter_type'
require 'support/fake_objects'
module Cucumber
module Glue
RSpec.describe StepDefinition do
let(:user_interface) { double('user interface') }
let(:regi... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/glue/step_definition_spec.rb | Ruby | mit | 5,212 | main | 7,120 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/glue/registry_and_more'
require 'support/fake_objects'
module Cucumber
module Glue
RSpec.describe StepDefinition do
let(:id) { double }
let(:user_interface) { double('user interface') }
let(:support_code) { Cuc... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/multiline_argument/data_table_spec.rb | Ruby | mit | 5,212 | main | 18,944 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/multiline_argument/data_table'
module Cucumber
module MultilineArgument
RSpec.describe DataTable do
subject(:table) { described_class.from([%w[one four seven], %w[4444 55555 666666]]) }
it 'has rows' do
expect(table.cells... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/cli/main_spec.rb | Ruby | mit | 5,212 | main | 2,521 | # frozen_string_literal: true
require 'yaml'
RSpec.describe Cucumber::Cli::Main do
subject { described_class.new(args, stdout, stderr, kernel) }
let(:args) { [] }
let(:stdout) { StringIO.new }
let(:stderr) { StringIO.new }
let(:kernel) { double(:kernel) }
before(:each) do
allow(File).to receive(:e... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/cli/configuration_spec.rb | Ruby | mit | 5,212 | main | 15,324 | # frozen_string_literal: true
require 'yaml'
RSpec.describe Cucumber::Cli::Configuration do
def given_cucumber_yml_defined_as(hash_or_string)
allow(File).to receive(:exist?).and_return(true)
cucumber_yml = hash_or_string.is_a?(Hash) ? hash_or_string.to_yaml : hash_or_string
allow(File).to receive(:read)... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/cli/profile_loader_spec.rb | Ruby | mit | 5,212 | main | 4,213 | # frozen_string_literal: true
require 'yaml'
RSpec.describe Cucumber::Cli::ProfileLoader do
subject(:loader) { described_class.new }
def given_cucumber_yml_defined_as(hash_or_string)
allow(Dir).to receive(:glob).with('{,.config/,config/}cucumber{.yml,.yaml}').and_return(['cucumber.yml'])
allow(File).to r... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/cli/rerun_spec.rb | Ruby | mit | 5,212 | main | 2,892 | # frozen_string_literal: true
RSpec.describe Cucumber::Cli::RerunFile do
let(:rerun_file) { described_class.new('@rerun.txt') }
it 'expects rerun files to have a leading @' do
allow(File).to receive(:file?).and_return(true)
expect(described_class.can_read?('rerun.txt')).to eq false
expect(described_cl... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/cli/options_spec.rb | Ruby | mit | 5,212 | main | 20,630 | # frozen_string_literal: true
require 'yaml'
require 'cucumber/cli/options'
RSpec.describe Cucumber::Cli::Options do
def given_cucumber_yml_defined_as(hash_or_string)
allow(File).to receive(:exist?).and_return(true)
cucumber_yml = hash_or_string.is_a?(Hash) ? hash_or_string.to_yaml : hash_or_string
al... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/activate_steps_spec.rb | Ruby | mit | 5,212 | main | 4,275 | # frozen_string_literal: true
require 'cucumber/filters/activate_steps'
require 'cucumber/core/gherkin/writer'
require 'cucumber/core'
RSpec.describe Cucumber::Filters::ActivateSteps do
include Cucumber::Core::Gherkin::Writer
include Cucumber::Core
let(:step_match) { double(activate: activated_test_step) }
l... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/gated_receiver_spec.rb | Ruby | mit | 5,212 | main | 1,091 | # frozen_string_literal: true
require 'cucumber/filters/gated_receiver'
RSpec.describe Cucumber::Filters::GatedReceiver do
subject(:gated_receiver) { described_class.new(receiver) }
let(:receiver) { double(:receiver) }
let(:test_cases) { [double(:test_case), double(:test_case)] }
describe '#test_case' do
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/tag_limits_spec.rb | Ruby | mit | 5,212 | main | 1,744 | # frozen_string_literal: true
require 'cucumber/filters/tag_limits'
RSpec.describe Cucumber::Filters::TagLimits do
subject(:filter) { described_class.new(tag_limits, receiver) }
let(:tag_limits) { double(:tag_limits) }
let(:receiver) { double(:receiver) }
let(:gated_receiver) { double(:gated_receiver) }
l... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/retry_spec.rb | Ruby | mit | 5,212 | main | 4,523 | # frozen_string_literal: true
require 'cucumber'
require 'cucumber/filters/retry'
require 'cucumber/core/gherkin/writer'
require 'cucumber/configuration'
require 'cucumber/core/test/case'
require 'cucumber/core'
require 'cucumber/events'
RSpec.describe Cucumber::Filters::Retry do
include Cucumber::Core::Gherkin::Wr... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/tag_limits/verifier_spec.rb | Ruby | mit | 5,212 | main | 1,620 | # frozen_string_literal: true
require 'cucumber/filters/tag_limits'
RSpec.describe Cucumber::Filters::TagLimits::Verifier do
describe '#verify!' do
subject(:verifier) { described_class.new(tag_limits) }
let(:test_case_index) { double(:test_case_index) }
context 'when the tag counts exceed the tag limi... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/filters/tag_limits/test_case_index_spec.rb | Ruby | mit | 5,212 | main | 1,279 | # frozen_string_literal: true
require 'cucumber/filters/tag_limits'
RSpec.describe Cucumber::Filters::TagLimits::TestCaseIndex do
subject(:index) { described_class.new }
let(:test_cases) do
[
double(:test_case, tags: [tag_one], location: a_location_of_tag_one),
double(:test_case, tags: [tag_one, ... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/json_spec.rb | Ruby | mit | 5,212 | main | 27,461 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/json'
require 'cucumber/cli/options'
require 'json'
RSpec.describe Cucumber::Formatter::Json do
extend Cucumber::Formatter::SpecHelperDsl
include Cucumber::Formatter::SpecHelper
before(:each... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/pretty_spec.rb | Ruby | mit | 5,212 | main | 29,402 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/pretty'
require 'cucumber/cli/options'
module Cucumber
module Formatter
RSpec.describe Pretty do
extend SpecHelperDsl
include SpecHelper
context 'with no options' do
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/progress_spec.rb | Ruby | mit | 5,212 | main | 4,382 | # frozen_string_literal: true
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/progress'
require 'cucumber/cli/options'
module Cucumber
module Formatter
RSpec.describe Progress do
extend SpecHelperDsl
include SpecHelper
before(:each) do
Cucumber::Term::ANSIColor.co... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/backtrace_filter_spec.rb | Ruby | mit | 5,212 | main | 1,552 | # frozen_string_literal: true
require 'cucumber/formatter/backtrace_filter'
RSpec.describe Cucumber::Formatter::BacktraceFilter do
subject(:exception) { exception_klass.new }
let(:exception_klass) do
Class.new(StandardError) do
def _trace
static_trace + dynamic_trace + realistic_trace
end... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/duration_spec.rb | Ruby | mit | 5,212 | main | 494 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/duration'
module Cucumber
module Formatter
RSpec.describe Duration do
include described_class
it 'formats ms' do
expect(format_duration(0.002103)).to eq '0m0.002s'
end
it 'formats m' do
expe... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/console_spec.rb | Ruby | mit | 5,212 | main | 620 | # frozen_string_literal: true
require 'cucumber/configuration'
require 'cucumber/formatter/console'
module Cucumber
module Formatter
RSpec.describe Console do
include described_class
it 'indents when padding is positive' do
res = indent('a line', 2)
expect(res).to eq ' a line'
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/interceptor_spec.rb | Ruby | mit | 5,212 | main | 3,917 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/interceptor'
RSpec.describe Cucumber::Formatter::Interceptor::Pipe do
let(:pipe) { instance_spy(IO) }
describe '#wrap!' do
it 'raises an ArgumentError if its not passed :stderr/:stdout' do
expect { described_class.wrap(:non... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/ansicolor_spec.rb | Ruby | mit | 5,212 | main | 1,390 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/ansicolor'
module Cucumber
module Formatter
RSpec.describe ANSIColor do
include described_class
it 'wraps passed_param with bold green and reset to green' do
expect(passed_param('foo')).to eq "\e[32m\e[1mfoo\e[0... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/message_spec.rb | Ruby | mit | 5,212 | main | 961 | # frozen_string_literal: true
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/message'
require 'cucumber/cli/options'
module Cucumber
module Formatter
RSpec.describe Message do
extend SpecHelperDsl
include SpecHelper
before(:each) do
Cucumber::Term::ANSIColor.colo... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/fail_fast_spec.rb | Ruby | mit | 5,212 | main | 2,470 | # frozen_string_literal: true
require 'cucumber/formatter/fail_fast'
require 'cucumber/core'
require 'cucumber/core/gherkin/writer'
require 'cucumber/core/test/result'
require 'cucumber/core/filter'
require 'cucumber'
require 'support/standard_step_actions'
module Cucumber
module Formatter
RSpec.describe FailFa... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/http_io_spec.rb | Ruby | mit | 5,212 | main | 1,166 | # frozen_string_literal: true
require 'stringio'
require 'webrick'
require 'webrick/https'
require 'spec_helper'
require 'cucumber/formatter/io'
require 'support/shared_context/http_server'
module Cucumber
module Formatter
class DummyFormatter
include Io
def initialize(config = nil); end
def... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/publish_banner_printer_spec.rb | Ruby | mit | 5,212 | main | 2,345 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/publish_banner_printer'
module Cucumber
module Formatter
RSpec.describe PublishBannerPrinter do
extend SpecHelperDsl
include SpecHelper
before do
Cucumber::Term::AN... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/curl_option_parser_spec.rb | Ruby | mit | 5,212 | main | 2,473 | # frozen_string_literal: true
require 'stringio'
require 'webrick'
require 'webrick/https'
require 'spec_helper'
require 'cucumber/formatter/io'
require 'support/shared_context/http_server'
RSpec.describe Cucumber::Formatter::CurlOptionParser do
describe '.parse' do
context 'when a simple URL is given' do
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/console_counts_spec.rb | Ruby | mit | 5,212 | main | 374 | # frozen_string_literal: true
require 'cucumber/configuration'
require 'cucumber/formatter/console_counts'
module Cucumber
module Formatter
RSpec.describe ConsoleCounts do
it 'works for zero' do
config = Configuration.new
counts = described_class.new(config)
expect(counts.to_s).to ... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/rerun_spec.rb | Ruby | mit | 5,212 | main | 4,884 | # frozen_string_literal: true
require 'cucumber/formatter/rerun'
require 'cucumber/core'
require 'cucumber/core/gherkin/writer'
require 'support/standard_step_actions'
require 'cucumber/configuration'
require 'support/fake_objects'
module Cucumber
module Formatter
RSpec.describe Rerun do
include Cucumber:... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/io_http_buffer_spec.rb | Ruby | mit | 5,212 | main | 4,266 | # frozen_string_literal: true
require 'stringio'
require 'webrick'
require 'webrick/https'
require 'cucumber/formatter/io'
require 'support/shared_context/http_server'
module Cucumber
module Formatter
class DummyReporter
def report(banner); end
end
RSpec.describe IOHTTPBuffer do
include_con... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/junit_spec.rb | Ruby | mit | 5,212 | main | 13,324 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/junit'
require 'nokogiri'
module Cucumber
module Formatter
class TestDoubleJunitFormatter < ::Cucumber::Formatter::Junit
attr_reader :written_files
def initialize(config)
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/url_reporter_spec.rb | Ruby | mit | 5,212 | main | 1,381 | # frozen_string_literal: true
require 'stringio'
require 'uri'
require 'cucumber/formatter/url_reporter'
module Cucumber
module Formatter
RSpec.describe URLReporter do
let(:io) { StringIO.new }
subject { described_class.new(io) }
describe '#report' do
it 'displays the provided string... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/spec_helper.rb | Ruby | mit | 5,212 | main | 2,295 | # frozen_string_literal: true
module Cucumber
module Formatter
module SpecHelperDsl
attr_reader :feature_content, :step_defs, :feature_filename
def define_feature(string, feature_file = 'spec.feature')
@feature_content = string
@feature_filename = feature_file
end
def de... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/query/test_case_started_by_test_case_spec.rb | Ruby | mit | 5,212 | main | 3,139 | # frozen_string_literal: true
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/query/test_case_started_by_test_case'
module Cucumber
module Formatter
module Query
RSpec.describe TestCaseStartedByTestCase do
extend SpecHelperDsl
include SpecHelper
before(:each) ... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/query/hook_by_test_step_spec.rb | Ruby | mit | 5,212 | main | 2,663 | # frozen_string_literal: true
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/query/hook_by_test_step'
RSpec.describe Cucumber::Formatter::Query::HookByTestStep do
extend Cucumber::Formatter::SpecHelperDsl
include Cucumber::Formatter::SpecHelper
before(:each) do
Cucumber::Term::ANSICol... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/formatter/query/pickle_by_test_spec.rb | Ruby | mit | 5,212 | main | 1,820 | # frozen_string_literal: true
require 'cucumber/formatter/spec_helper'
require 'cucumber/formatter/query/pickle_by_test'
module Cucumber
module Formatter
module Query
RSpec.describe PickleByTest do
extend SpecHelperDsl
include SpecHelper
before(:each) do
Cucumber::Term::... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/term/banner_spec.rb | Ruby | mit | 5,212 | main | 2,795 | # frozen_string_literal: true
require 'cucumber/term/banner'
RSpec.describe Cucumber::Term::Banner do
include described_class
describe '.display_banner' do
let(:io) { StringIO.new }
context 'when a string is provided' do
it 'outputs a nice banner to IO surrounded by a bold green border' do
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/rake/task_spec.rb | Ruby | mit | 5,212 | main | 3,268 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/rake/task'
require 'rake'
module Cucumber
module Rake
RSpec.describe Task do
describe '#task_name' do
it 'can be read' do
expect(subject.task_name).to eq('cucumber')
end
end
describe '#task_name=' ... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/rake/forked_cucumber_runner_spec.rb | Ruby | mit | 5,212 | main | 1,319 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/rake/forked_cucumber_runner'
require 'rake'
RSpec.describe Cucumber::Rake::ForkedCucumberRunner do
subject(:rake_task) { described_class.new(libs, binary, cucumber_opts, bundler, feature_files) }
let(:libs) { ['lib'] }
let(:binary) { Cucumbe... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | spec/cucumber/world/pending_spec.rb | Ruby | mit | 5,212 | main | 1,312 | # frozen_string_literal: true
require 'spec_helper'
require 'cucumber/glue/registry_and_more'
require 'cucumber/configuration'
module Cucumber
RSpec.describe 'Pending' do
before(:each) do
registry = Glue::RegistryAndMore.new(Runtime.new, Configuration.new)
registry.begin_scenario(double('scenario').... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/cck_spec.rb | Ruby | mit | 5,212 | main | 2,376 | # frozen_string_literal: true
require_relative 'support/shared_examples'
require_relative 'support/compatibility_kit'
require 'cucumber/compatibility_kit'
# This is the implementation of the CCK testing for cucumber-ruby
# It will run each example from the CCK that is of type "gherkin" (As "markdown" examples aren't... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/spec/compatibility_kit_spec.rb | Ruby | mit | 5,212 | main | 710 | # frozen_string_literal: true
require_relative '../support/compatibility_kit'
RSpec.describe CompatibilityKit do
let(:features_path) { File.expand_path("#{File.dirname(__FILE__)}/../features") }
describe '.supporting_code_for' do
context 'with an example that exists' do
it 'returns the path of the fold... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/spec/cck/keys_checker_spec.rb | Ruby | mit | 5,212 | main | 2,747 | # frozen_string_literal: true
require 'rspec'
require 'cucumber/messages'
require_relative '../../support/cck/keys_checker'
RSpec.describe CCK::KeysChecker do
describe '#compare' do
let(:expected_kvps) { Cucumber::Messages::Attachment.new(url: 'https://foo.com', file_name: 'file.extension', test_step_id: 123_45... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/spec/cck/messages_comparator_spec.rb | Ruby | mit | 5,212 | main | 1,134 | # frozen_string_literal: true
require 'rspec'
require 'cucumber/messages'
require_relative '../../support/cck/messages_comparator'
RSpec.describe CCK::MessagesComparator do
describe '#errors' do
context 'when executed as part of a CI' do
before { allow(ENV).to receive(:[]).with('CI').and_return(true) }
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/empty/empty_steps.rb | Ruby | mit | 5,212 | main | 232 | # frozen_string_literal: true
# The empty CCK scenario does not contain any executable steps. It contains just one scenario
# which will be "ran" and only produce a single pickle for the name of the scenario (No pickles for steps) |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/global-hooks-beforeall-error/global-hooks-beforeall-error_steps.rb | Ruby | mit | 5,212 | main | 234 | # frozen_string_literal: true
BeforeAll do
# no-op
end
BeforeAll do
raise 'BeforeAll hook went wrong'
end
BeforeAll do
# no-op
end
When('a step passes') do
# no-op
end
AfterAll do
# no-op
end
AfterAll do
# no-op
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/global-hooks/global-hooks_steps.rb | Ruby | mit | 5,212 | main | 237 | # frozen_string_literal: true
BeforeAll do
# no-op
end
BeforeAll do
# no-op
end
When('a step passes') do
# no-op
end
When('a step fails') do
raise 'Exception in step'
end
AfterAll do
# no-op
end
AfterAll do
# no-op
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/rules/rules_steps.rb | Ruby | mit | 5,212 | main | 510 | # frozen_string_literal: true
Given('the customer has {int} cents') do |money|
@money = money
end
Given('there are chocolate bars in stock') do
@stock = ['Mars']
end
Given('there are no chocolate bars in stock') do
@stock = []
end
When('the customer tries to buy a {int} cent chocolate bar') do |price|
@choc... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/pending/pending_steps.rb | Ruby | mit | 5,212 | main | 213 | # frozen_string_literal: true
Given('an implemented non-pending step') do
# no-op
end
Given('an implemented step that is skipped') do
# no-op
end
Given('an unimplemented pending step') do
pending('')
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/examples-tables-attachment/examples-tables-attachment_steps.rb | Ruby | mit | 5,212 | main | 375 | # frozen_string_literal: true
def cck_asset_path
"#{Gem.loaded_specs['cucumber-compatibility-kit'].full_gem_path}/features/examples-tables-attachment"
end
When('a JPEG image is attached') do
attach(File.open("#{cck_asset_path}/cucumber.jpeg"), 'image/jpeg')
end
When('a PNG image is attached') do
attach(File.op... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/hooks-attachment/hooks-attachment_steps.rb | Ruby | mit | 5,212 | main | 359 | # frozen_string_literal: true
def cck_asset_path
"#{Gem.loaded_specs['cucumber-compatibility-kit'].full_gem_path}/features/hooks-attachment"
end
Before do
attach(File.open("#{cck_asset_path}/cucumber.svg"), 'image/svg+xml')
end
After do
attach(File.open("#{cck_asset_path}/cucumber.svg"), 'image/svg+xml')
end
... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/global-hooks-attachments/global-hooks-attachments_steps.rb | Ruby | mit | 5,212 | main | 218 | # frozen_string_literal: true
BeforeAll do
attach('Attachment from BeforeAll hook', 'text/plain')
end
When('a step passes') do
# no-op
end
AfterAll do
attach('Attachment from AfterAll hook', 'text/plain')
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/global-hooks-afterall-error/global-hooks-afterall-error_steps.rb | Ruby | mit | 5,212 | main | 232 | # frozen_string_literal: true
BeforeAll do
# no-op
end
BeforeAll do
# no-op
end
When('a step passes') do
# no-op
end
AfterAll do
# no-op
end
AfterAll do
raise 'AfterAll hook went wrong'
end
AfterAll do
# no-op
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/retry/retry_steps.rb | Ruby | mit | 5,212 | main | 592 | # frozen_string_literal: true
Given('a step that always passes') do
# no-op
end
second_time_pass = 0
Given('a step that passes the second time') do
second_time_pass += 1
raise 'Exception in step' if second_time_pass < 2
end
third_time_pass = 0
Given('a step that passes the third time') do
third_time_pass += ... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/attachments/attachments_steps.rb | Ruby | mit | 5,212 | main | 1,016 | # frozen_string_literal: true
def cck_asset_path
"#{Gem.loaded_specs['cucumber-compatibility-kit'].full_gem_path}/features/attachments"
end
When('the string {string} is attached as {string}') do |text, media_type|
attach(text, media_type)
end
When('the string {string} is logged') do |text|
log(text)
end
When(... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/skipped/skipped_steps.rb | Ruby | mit | 5,212 | main | 238 | # frozen_string_literal: true
Before('@skip') do
skip_this_scenario('')
end
Given('a step that does not skip') do
# no-op
end
Given('a step that is skipped') do
# no-op
end
Given('I skip a step') do
skip_this_scenario('')
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/examples-tables/examples-tables_steps.rb | Ruby | mit | 5,212 | main | 526 | # frozen_string_literal: true
Given('there are {int} cucumbers') do |initial_count|
@count = initial_count
end
Given('there are {int} friends') do |initial_friends|
@friends = initial_friends
end
When('I eat {int} cucumbers') do |eat_count|
@count -= eat_count
end
Then('I should have {int} cucumbers') do |exp... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/hooks-conditional/hooks-conditional_steps.rb | Ruby | mit | 5,212 | main | 293 | # frozen_string_literal: true
Before('@passing-hook') do
# no-op
end
Before('@fail-before') do
raise 'Exception in conditional hook'
end
When('a step passes') do
# no-op
end
After('@passing-hook') do
# no-op
end
After('@fail-after') do
raise 'Exception in conditional hook'
end |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/features/parameter-types/parameter-types_steps.rb | Ruby | mit | 5,212 | main | 381 | # frozen_string_literal: true
class Flight
attr_reader :from, :to
def initialize(from, to)
@from = from
@to = to
end
end
ParameterType(
name: 'flight',
regexp: /([A-Z]{3})-([A-Z]{3})/,
transformer: ->(from, to) { Flight.new(from, to) }
)
Given('{flight} has been delayed') do |flight|
expect(fl... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/support/shared_examples.rb | Ruby | mit | 5,212 | main | 1,490 | # frozen_string_literal: true
require 'json'
require 'rspec'
require 'cucumber/messages'
require_relative 'cck/helpers'
require_relative 'cck/messages_comparator'
RSpec.shared_examples 'cucumber compatibility kit' do
include CCK::Helpers
let(:cck_path) { CompatibilityKit.feature_code_for(example) }
let(:pars... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/support/compatibility_kit.rb | Ruby | mit | 5,212 | main | 475 | # frozen_string_literal: true
class CompatibilityKit
class << self
def supporting_code_for(example_name)
path = File.join(local_features_folder_location, example_name)
return path if File.directory?(path)
raise ArgumentError, "No supporting code directory found locally for CCK example: #{exam... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/support/cck/helpers.rb | Ruby | mit | 5,212 | main | 382 | # frozen_string_literal: true
module CCK
module Helpers
def message_type(message)
message.to_h.each do |key, value|
return key unless value.nil?
end
end
def parse_ndjson_file(path)
parse_ndjson(File.read(path))
end
def parse_ndjson(ndjson)
Cucumber::Messages::Hel... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/support/cck/keys_checker.rb | Ruby | mit | 5,212 | main | 1,455 | # frozen_string_literal: true
module CCK
class KeysChecker
def self.compare(detected, expected)
new(detected, expected).compare
end
attr_reader :detected, :expected
def initialize(detected, expected)
@detected = detected
@expected = expected
end
def compare
return i... |
github | cucumber/cucumber-ruby | https://github.com/cucumber/cucumber-ruby | compatibility/support/cck/messages_comparator.rb | Ruby | mit | 5,212 | main | 2,802 | # frozen_string_literal: true
require_relative 'keys_checker'
require_relative 'helpers'
module CCK
class MessagesComparator
include Helpers
def initialize(detected, expected)
compare(detected, expected)
end
def errors
all_errors.compact
end
private
def compare(detected, ... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | Rakefile | Ruby | mit | 5,205 | master | 1,284 | # encoding: utf-8
require 'bundler/setup'
require 'yard'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
desc 'Default: run unit specs.'
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task :default => :appraisal
else
task :default => :spec
end
desc 'Run the default task over all gemfiles.'
ta... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | Gemfile | Ruby | mit | 5,205 | master | 239 | source 'https://rubygems.org'
# Which version of Rails to use specifically for local development. These currently match rails_8.gemfile.
gem "actionpack", "~> 8.0.2"
gem "activesupport", "~> 8.0.2"
gem "activerecord", "~> 8.0.2"
gemspec |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | formtastic.gemspec | Ruby | mit | 5,205 | master | 2,040 | # encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)
require "formtastic/version"
Gem::Specification.new do |s|
s.name = %q{formtastic}
s.version = Formtastic::VERSION
s.platform = Gem::Platform::RUBY
s.authors = [%q{Justin French}]
s.email = [%q{justin@indent.com.au}]
s.h... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | Appraisals | Ruby | mit | 5,205 | master | 646 | appraise "rails-72" do
gem "actionpack", "~> 7.2.3"
gem "activesupport", "~> 7.2.3"
gem "activerecord", "~> 7.2.3"
end
appraise "rails-80" do
gem "actionpack", "~> 8.0.4"
gem "activesupport", "~> 8.0.4"
gem "activerecord", "~> 8.0.4"
end
appraise "rails-81" do
gem "actionpack", "~> 8.1.2"
gem "actives... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/action_class_finder_spec.rb | Ruby | mit | 5,205 | master | 326 | # frozen_string_literal: true
require 'spec_helper'
require 'formtastic/action_class_finder'
RSpec.describe Formtastic::ActionClassFinder do
include FormtasticSpecHelper
it_behaves_like 'Specialized Class Finder' do
let(:default) { Formtastic::Actions }
let(:namespaces_setting) { :action_namespaces }
en... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/i18n_spec.rb | Ruby | mit | 5,205 | master | 7,222 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::I18n' do
FORMTASTIC_KEYS = [:required, :yes, :no, :create, :update].freeze
it "should be defined" do
expect { Formtastic::I18n }.not_to raise_error
end
describe "default translations" do
it "should be defined" do
e... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/namespaced_class_finder_spec.rb | Ruby | mit | 5,205 | master | 2,383 | # frozen_string_literal: true
require 'spec_helper'
require 'formtastic/namespaced_class_finder'
RSpec.describe Formtastic::NamespacedClassFinder do
include FormtasticSpecHelper
before do
stub_const('SearchPath', Module.new)
end
let(:search_path) { [ SearchPath ] }
subject(:finder) { Formtastic::Namesp... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/localizer_spec.rb | Ruby | mit | 5,205 | master | 3,790 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::Localizer' do
describe "Cache" do
before do
@cache = Formtastic::Localizer::Cache.new
@key = ['model', 'name']
@undefined_key = ['model', 'undefined']
@cache.set(@key, 'value')
end
it "should get ... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/schema.rb | Ruby | mit | 5,205 | master | 647 | # frozen_string_literal: true
ActiveRecord::Schema.define(version: 20170208011723) do
create_table "posts", force: :cascade do |t|
t.integer "author_id", limit: 4, null: false
end
create_table "authors", force: :cascade do |t|
t.integer "age", limit: 4, null: false
t.string "name", limi... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/input_class_finder_spec.rb | Ruby | mit | 5,205 | master | 290 | # frozen_string_literal: true
require 'spec_helper'
require 'formtastic/input_class_finder'
RSpec.describe Formtastic::InputClassFinder do
it_behaves_like 'Specialized Class Finder' do
let(:default) { Formtastic::Inputs }
let(:namespaces_setting) { :input_namespaces }
end
end |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/spec_helper.rb | Ruby | mit | 5,205 | master | 19,296 | # frozen_string_literal: true
require 'rubygems'
require 'bundler/setup'
require 'active_support'
require 'action_pack'
require 'action_view'
require 'action_controller'
require 'action_dispatch'
require 'active_record'
ActiveRecord::Base.establish_connection('url' => 'sqlite3::memory:', 'pool' => 1)
load 'spec/schema... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/fast_spec_helper.rb | Ruby | mit | 5,205 | master | 294 | # frozen_string_literal: true
$LOAD_PATH << 'lib/formtastic'
require 'active_support/all'
require 'localized_string'
require 'inputs'
require 'helpers'
class MyInput
include Formtastic::Inputs::Base
end
I18n.enforce_available_locales = false if I18n.respond_to?(:enforce_available_locales) |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/support/shared_examples.rb | Ruby | mit | 5,205 | master | 241 | # frozen_string_literal: true
RSpec.shared_context 'form builder' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
after do
::I18n.backend.reload!
end
end |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/support/custom_macros.rb | Ruby | mit | 5,205 | master | 22,730 | # frozen_string_literal: true
module CustomMacros
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def it_should_have_input_wrapper_with_class(class_name)
it "should have input wrapper with class '#{class_name}'" do
expect(output_buffer.to_str).to have_tag("form ... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/support/test_environment.rb | Ruby | mit | 5,205 | master | 1,603 | # frozen_string_literal: true
require 'rspec/core'
require 'rspec-dom-testing'
RSpec.configure do |config|
config.include CustomMacros
config.include RSpec::Dom::Testing::Matchers
config.mock_with :rspec
# rspec-rails 3 will no longer automatically infer an example group's spec type
# from the file locatio... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/support/specialized_class_finder_shared_example.rb | Ruby | mit | 5,205 | master | 825 | # frozen_string_literal: true
#
RSpec.shared_examples 'Specialized Class Finder' do
let(:builder) { Formtastic::FormBuilder.allocate }
subject(:finder) { described_class.new(builder) }
context 'by default' do
it 'includes Object and the default namespaces' do
expect(finder.namespaces).to eq([Object, de... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/inputs_helper_spec.rb | Ruby | mit | 5,205 | master | 27,808 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::FormBuilder#inputs' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe 'with a block (block forms syntax)' do
describe 'when no options are provid... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/reflection_helper_spec.rb | Ruby | mit | 5,205 | master | 867 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::Helpers::Reflection' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
class ReflectionTester
include Formtastic::Helpers::Reflection
def initialize(mo... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/actions_helper_spec.rb | Ruby | mit | 5,205 | master | 4,363 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::FormBuilder#actions' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe 'with a block' do
describe 'when no options are provided' do
before d... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/semantic_errors_helper_spec.rb | Ruby | mit | 5,205 | master | 8,222 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::FormBuilder#semantic_errors' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
@title_errors = ['must not be blank', 'must be awesome']
@base_errors = ['base er... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/action_helper_spec.rb | Ruby | mit | 5,205 | master | 13,062 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'with action class finder' do
include_context 'form builder'
describe 'arguments and options' do
it 'should require the first argument (the action method)' do
expect {
concat(semantic_form_for(@new_post) do |builder|
c... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/form_helper_spec.rb | Ruby | mit | 5,205 | master | 8,411 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'FormHelper' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe '#semantic_form_for' do
it 'yields an instance of Formtastic::FormBuilder' do
semantic_fo... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/helpers/input_helper_spec.rb | Ruby | mit | 5,205 | master | 47,461 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'with input class finder' do
include_context 'form builder'
before do
@errors = double('errors')
allow(@errors).to receive(:[]).and_return([])
allow(@new_post).to receive(:errors).and_return(@errors)
end
describe 'arguments and op... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/generators/formtastic/input/input_generator_spec.rb | Ruby | mit | 5,205 | master | 4,196 | # frozen_string_literal: true
require 'spec_helper'
require 'generators/formtastic/input/input_generator'
RSpec.describe Formtastic::InputGenerator do
include FormtasticSpecHelper
destination File.expand_path("../../../../../tmp", __FILE__)
before do
prepare_destination
end
after do
FileUtils.rm_... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/generators/formtastic/form/form_generator_spec.rb | Ruby | mit | 5,205 | master | 4,504 | # frozen_string_literal: true
require 'spec_helper'
# Generators are not automatically loaded by Rails
require 'generators/formtastic/form/form_generator'
RSpec.describe Formtastic::FormGenerator do
include FormtasticSpecHelper
# Tell the generator where to put its output (what it thinks of as Rails.root)
des... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/generators/formtastic/stylesheets/stylesheets_generator_spec.rb | Ruby | mit | 5,205 | master | 683 | # frozen_string_literal: true
require 'spec_helper'
# Generators are not automatically loaded by Rails
require 'generators/formtastic/stylesheets/stylesheets_generator'
RSpec.describe Formtastic::StylesheetsGenerator do
# Tell the generator where to put its output (what it thinks of as Rails.root)
destination Fil... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/generators/formtastic/install/install_generator_spec.rb | Ruby | mit | 5,205 | master | 1,607 | # frozen_string_literal: true
require 'spec_helper'
# Generators are not automatically loaded by Rails
require 'generators/formtastic/install/install_generator'
RSpec.describe Formtastic::InstallGenerator do
# Tell the generator where to put its output (what it thinks of as Rails.root)
destination File.expand_pat... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/builder/semantic_fields_for_spec.rb | Ruby | mit | 5,205 | master | 8,426 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::FormBuilder#fields_for' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
allow(@new_post).to receive(:author).and_return(::Author.new)
end
context 'outside a ... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/builder/error_proc_spec.rb | Ruby | mit | 5,205 | master | 715 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Rails field_error_proc' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
it "should not be overridden globally for all form builders" do
current_field_error_proc = ::... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/builder/custom_builder_spec.rb | Ruby | mit | 5,205 | master | 4,155 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::Helpers::FormHelper.builder' do
include FormtasticSpecHelper
class MyCustomFormBuilder < Formtastic::FormBuilder
end
# TODO should be a separate spec for custom inputs
class Formtastic::Inputs::AwesomeInput
include Formtas... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/placeholder_spec.rb | Ruby | mit | 5,205 | master | 2,519 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'string input' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
after do
::I18n.backend.reload!
end
describe "placeholder text" do
[:email, :number, :passwor... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/phone_input_spec.rb | Ruby | mit | 5,205 | master | 2,368 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'phone input' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe "when object is provided" do
before do
concat(semantic_form_for(@new_post) do |builder|
... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/search_input_spec.rb | Ruby | mit | 5,205 | master | 2,383 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'search input' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe "when object is provided" do
before do
concat(semantic_form_for(@new_post) do |builder|
... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/datetime_picker_input_spec.rb | Ruby | mit | 5,205 | master | 14,723 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'datetime_picker input' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
after do
::I18n.backend.reload!
end
context "with an object" do
before do
conca... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/label_spec.rb | Ruby | mit | 5,205 | master | 7,101 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Formtastic::FormBuilder#label' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
it 'should add "required string" only once with caching enabled' do
with_config :i18n_... |
github | formtastic/formtastic | https://github.com/formtastic/formtastic | spec/inputs/range_input_spec.rb | Ruby | mit | 5,205 | master | 17,577 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'range input' do
include FormtasticSpecHelper
before do
@output_buffer = ActionView::OutputBuffer.new ''
mock_everything
end
describe "when object is provided" do
before do
concat(semantic_form_for(@bob) do |builder|
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.