aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/crypt.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2010-08-09 14:39:50 +0100
committerWilmer van der Gaast <wilmer@google.com>2010-08-09 14:39:50 +0100
commitf32c14c649e854fbfb7b8e495e2ebc8459ee5b6f (patch)
treec5cc5e5b972b8e8381aab505dd44a2c57ec46575 /protocols/yahoo/crypt.c
parentb8906261293b34d8c792bd1f48df10144a8a8f10 (diff)
Oops. We're using channel mode +h (halfop) for a while already, but so far
without advertising this in 005. This confuses irssi ans possibly other clients. Fixing that now. Also adding SAFELIST which may make some clients less afraid of using /LIST, and CHANNELLEN with an artifical limit (the code has no max. channel name limit).
Diffstat (limited to 'protocols/yahoo/crypt.c')
0 files changed, 0 insertions, 0 deletions
otfix/0.20.0.14'>hotfix/0.20.0.14 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/rspec/spec/spec/mocks/bug_report_7805_spec.rb
blob: f7edfac175458b0b74d2a77ac3a0813d2aa60d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require File.dirname(__FILE__) + '/../../spec_helper.rb'

module Bug7805
  #This is really a duplicate of 8302

  describe "Stubs should correctly restore module methods" do
    it "1 - stub the open method" do
      File.stub!(:open).and_return("something")
      File.open.should == "something"
    end
    it "2 - use File.open to create example.txt" do
      filename = "#{File.dirname(__FILE__)}/example-#{Time.new.to_i}.txt"
      File.exist?(filename).should be_false
      file = File.open(filename,'w')
      file.close
      File.exist?(filename).should be_true
      File.delete(filename)
      File.exist?(filename).should be_false
    end
  end

end