Sha256: c7eadcd8ff2c155d0d97378177b6a5cec0aa42548797d151cabf1e1dbe5f0072

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

require 'ronin/code/sql/function'

describe Ronin::Code::SQL::Function do
  describe "#initialize" do
    context "with no arguments" do
      subject { described_class.new(:f) }

      it "should set arguments to []" do
        expect(subject.arguments).to eq([])
      end
    end

    context "with multiple arguments" do
      let(:arguments) { [1,2,3] }

      subject { described_class.new(:f,*arguments) }

      it "should set arguments" do
        expect(subject.arguments).to eq(arguments)
      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/function_spec.rb