Sha256: 2c43290b0f1712fb904bbabce64b8172b2e282fd7959d8fd32702b8bfa945ded
Contents?: true
Size: 523 Bytes
Versions: 8
Compression:
Stored size: 523 Bytes
Contents
require "spec_helper" module Nyanko describe UnitProxy do let(:view) do Class.new { include UnitProxyProvider }.new end describe "#active?" do it "returns activation status of unit" do view.unit(:example_unit).should be_active view.unit(:inactive_unit).should_not be_active end end describe "#method_missing" do it "calls prefixed method" do view.should_receive(:__example_unit_test) view.unit(:example_unit).test end end end end
Version data entries
8 entries across 8 versions & 1 rubygems