Sha256: ed2666465653d35025eafff849dc126dc8a4001b0bfcf5c3d4b78bd68e3881af
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' require 'ronin/code/sql/binary_expr' shared_examples_for "BinaryExpr" do |method,operator=method| describe "##{method}" do let(:operand) { 1 } let(:expr) { subject.send(method,operand) } it "should be a BinaryExpr" do expect(expr).to be_kind_of(Ronin::Code::SQL::BinaryExpr) end it "should set the left-hand side operand" do expect(expr.left).to eq(subject) end it "should have a '#{operator}' operator" do expect(expr.operator).to eq(operator) end it "should set the right-hand side operand" do expect(expr.right).to eq(operand) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-code-sql-2.0.0.beta1 | spec/sql/binary_expr_examples.rb |