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