Sha256: 71ac4d065c16d2ec98960821f149825dd5549c663e82e2e5b0af85ae0565d36b

Contents?: true

Size: 466 Bytes

Versions: 17

Compression:

Stored size: 466 Bytes

Contents

require_relative "../../spec_helper"

describe Rsense::Server::Project do
  before do
    @project = Rsense::Server::Project.new(__FILE__, File.dirname(__FILE__))
  end

  it "has stubs" do
    stubs = @project.stubs.select { |e| e.to_s =~ /_builtin/ }
    stubs.size.must_equal(1)
  end

  it "tracks loaded features" do
    @project.loaded << "feature"
    @project.loaded?("feature").must_equal(true)
    @project.loaded?("different").must_equal(false)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rsense-server-0.5.18 spec/rsense/server/project_spec.rb
rsense-server-0.5.17 spec/rsense/server/project_spec.rb
rsense-server-0.5.16 spec/rsense/server/project_spec.rb
rsense-server-0.5.15 spec/rsense/server/project_spec.rb
rsense-server-0.5.14 spec/rsense/server/project_spec.rb
rsense-server-0.5.13 spec/rsense/server/project_spec.rb
rsense-server-0.5.12 spec/rsense/server/project_spec.rb
rsense-server-0.5.11 spec/rsense/server/project_spec.rb
rsense-server-0.5.10 spec/rsense/server/project_spec.rb
rsense-server-0.5.9 spec/rsense/server/project_spec.rb
rsense-server-0.5.8 spec/rsense/server/project_spec.rb
rsense-server-0.5.7 spec/rsense/server/project_spec.rb
rsense-server-0.5.6 spec/rsense/server/project_spec.rb
rsense-server-0.5.5 spec/rsense/server/project_spec.rb
rsense-server-0.5.4 spec/rsense/server/project_spec.rb
rsense-server-0.5.2 spec/rsense/server/project_spec.rb
rsense-server-0.5.0 spec/rsense/server/project_spec.rb