Sha256: 861c7425a5e990380e15a2a69fe7673c9038029b7e7334c5113b440945499e76
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require 'ronin/model/targets_arch' require 'spec_helper' require 'model/models/targets_arch_model' describe Model::TargetsArch do it "should define an arch relation" do TargetsArchModel.relationships.has_key?('arch') end it "should provide access to the targeted arch" do model = TargetsArchModel.new(:arch => Arch.i386) model.arch.name.should == 'i386' end it "should allow the arch to be set via the getter method" do model = TargetsArchModel.new model.arch :i386 model.arch.name.should == 'i386' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-exploits-0.2.1 | spec/model/targets_arch_spec.rb |