Top Level Namespace

Defined Under Namespace

Modules: Kernel, MSpec, Mock, ScratchPad, StringSymbolAdapter Classes: ActionFilter, BackgroundGuard, BeAnInstanceOfMatcher, BeAncestorOfMatcher, BeCloseMatcher, BeComputedByFunctionMatcher, BeComputedByMatcher, BeEmptyMatcher, BeFalseMatcher, BeKindOfMatcher, BeNaNMatcher, BeNilMatcher, BeTrueMatcher, BeValidDNSName, BigEndianGuard, BlockDeviceGuard, BugGuard, ComplainMatcher, CompliantOnGuard, ConflictsGuard, ContextState, DescribeFormatter, DottedFormatter, EndianGuard, EqlMatcher, EqualElementMatcher, EqualMatcher, EqualUtf16Matcher, ExampleState, ExceptionState, ExtensionsGuard, FeatureGuard, FileFormatter, GdbAction, HaveClassVariableMatcher, HaveConstantMatcher, HaveDataMatcher, HaveInstanceMethodMatcher, HaveInstanceVariableMatcher, HaveMethodMatcher, HavePrivateInstanceMethodMatcher, HavePrivateMethodMatcher, HaveProtectedInstanceMethodMatcher, HavePublicInstanceMethodMatcher, HaveSingletonMethodMatcher, HtmlFormatter, IOStub, IncludeMatcher, InfinityMatcher, JUnitFormatter, LittleEndianGuard, MSpecCI, MSpecMain, MSpecOption, MSpecOptions, MSpecRun, MSpecScript, MSpecTag, MatchFilter, MatchYAMLMatcher, MethodFormatter, MethodMatcher, MkSpec, MockIntObject, MockObject, MockProxy, NameMap, NonComplianceGuard, NotCompliantOnGuard, NumericMockObject, Object, OutputMatcher, OutputToFDMatcher, PlatformGuard, ProfileFilter, ProfileFormatter, QuarantineGuard, RaiseErrorMatcher, RaiseExceptionMatcher, RegexpFilter, RespondToMatcher, RunnerGuard, SignedZeroMatcher, SpecEvaluate, SpecExpectation, SpecExpectationNotFoundError, SpecExpectationNotMetError, SpecGuard, SpecNegativeOperatorMatcher, SpecPositiveOperatorMatcher, SpecTag, SpecVersion, SpecdocFormatter, SpecifiedOnGuard, SpinnerFormatter, SummaryFormatter, SuperUserGuard, SupportedGuard, TTYGuard, TagAction, TagFilter, TagListAction, TagPurgeAction, Tally, TallyAction, TimerAction, UnitdiffFormatter, UnspecifiedGuard, UserGuard, VariableMatcher, VersionGuard, YamlFormatter

Constant Summary collapse

SPEC_TEMP_DIR =

Creates a temporary directory in the current working directory for temporary files created while running the specs. All specs should clean up any temporary files created so that the temp directory is empty when the process exits.

"#{File.expand_path(Dir.pwd)}/rubyspec_temp"
SPEC_TEMP_UNIQUIFIER =
"0"
SPEC_TMEM_DIR_PID =
Process.pid
MSPEC_HOME =

! /usr/bin/env ruby

File.expand_path(File.dirname(__FILE__) + '/../../..')
RUBY_NAME =
RbConfig::CONFIG["RUBY_INSTALL_NAME"] || RbConfig::CONFIG["ruby_install_name"]
TOLERANCE =
0.00003

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.write(str) ⇒ Object



14
15
16
17
# File 'lib/mspec/runner.rb', line 14

def $stderr.write(str)
  # The 'useless use of' warnings are a crime against OO.
  str =~ /useless use of/ ? nil : super
end

Instance Method Details

#pack_int(*ary) ⇒ Object



1
2
3
# File 'lib/mspec/helpers/pack.rb', line 1

def pack_int(*ary)
  ary.pack("i*")
end