File: meta_magic_spec.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require "spec_helper"

describe FakedProject do
  it "should have added a class method to FakedProject" do
    expect(FakedProject.a_class_method).to eq("this is a mixed-in class method")
  end

  it "should have added a mixed-in instance method to FakedProject" do
    expect(subject.an_instance_method).to eq("this is a mixed-in instance method")
  end

  it "should have added a dynamically-defined instance method to FakedProject" do
    expect(subject.dynamic).to eq("A dynamically defined instance method")
  end
end