Sha256: 42aa2ffeaa7ad6a5b575fc96b66302284093b4951330f4af82f3a8e3a13f8614
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' require 'ronin/sql/function' describe SQL::Function do describe "#initialize" do context "with no arguments" do subject { described_class.new(:f) } it "should set arguments to []" do subject.arguments.should == [] end end context "with multiple arguments" do let(:arguments) { [1,2,3] } subject { described_class.new(:f,*arguments) } it "should set arguments" do subject.arguments.should == arguments end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-sql-1.1.0 | spec/sql/function_spec.rb |
ronin-sql-1.0.0 | spec/sql/function_spec.rb |