Sha256: 5bc53ec7d4fd3d55cfc5043f0aadf964419a1af6ce3bab8467bdb8b48a512b1b
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
require 'spec_helper' require 'ronin/code/sql/clause' describe Ronin::Code::SQL::Clause do describe "#initialize" do context "when given an argument" do let(:argument) { 1 } subject { described_class.new(:CLAUSE,argument) } it "should set the argument" do expect(subject.argument).to eq(argument) end end context "when given a block" do subject do described_class.new(:CLAUSE) { 1 } end it "should use the return value as the argument" do expect(subject.argument).to eq(1) end context "that accepts an argument" do it "should yield itself" do end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-code-sql-2.0.0.beta1 | spec/sql/clause_spec.rb |