File: shared_specs.rb

package info (click to toggle)
ruby-roxml 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 800 kB
  • sloc: ruby: 4,133; xml: 1,013; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if defined?(shared_examples_for)
  shared_examples_for "freezable xml reference" do
    describe "with :frozen option" do
      it "should be frozen" do
        expect(@frozen.frozen?).to be_truthy
      end
    end

    describe "without :frozen option" do
      it "should not be frozen" do
        expect(@unfrozen.frozen?).to be_falsey
      end
    end
  end
end